better file organization

This commit is contained in:
Daniel Borges 2019-08-07 17:20:22 -03:00
parent 074e61fab8
commit a18621b2be
7 changed files with 10 additions and 10 deletions

View File

@ -2,8 +2,8 @@ import 'package:flutter/material.dart';
import 'widgets/bottom_navigation_bar.dart'; import 'widgets/bottom_navigation_bar.dart';
import 'widgets/search_floating_button.dart'; import 'widgets/search_floating_button.dart';
import 'widgets/service_listview.dart'; import 'screens/service_list_view.dart';
import 'widgets/slides_listview.dart'; import 'screens/slides_list_view.dart';
class OpenLPRemoteApp extends StatefulWidget { class OpenLPRemoteApp extends StatefulWidget {
@override @override
@ -46,7 +46,7 @@ class _OpenLPRemoteAppState extends State<OpenLPRemoteApp>
controller: tabController, controller: tabController,
children: <Widget>[ children: <Widget>[
ServiceListView(), ServiceListView(),
SlideListView(), SlidesListView(),
], ],
), ),
floatingActionButton: SearchFloatingButton(), floatingActionButton: SearchFloatingButton(),

View File

@ -1,6 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class ServiceItemSearch extends SearchDelegate { class SearchServiceItem extends SearchDelegate {
@override @override
List<Widget> buildActions(BuildContext context) { List<Widget> buildActions(BuildContext context) {
return null; return null;

View File

@ -2,12 +2,12 @@ import 'package:flutter/material.dart';
import '../models/slide_item.dart'; import '../models/slide_item.dart';
class SlideListView extends StatefulWidget { class SlidesListView extends StatefulWidget {
@override @override
_SlideListViewState createState() => _SlideListViewState(); _SlidesListViewState createState() => _SlidesListViewState();
} }
class _SlideListViewState extends State<SlideListView> { class _SlidesListViewState extends State<SlidesListView> {
List<SlideItem> slidesItems; List<SlideItem> slidesItems;
@override @override

View File

@ -1,6 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'display_options_bottom_sheet.dart'; import 'display_options_dialog.dart';
import 'show_alert_dialog.dart'; import 'show_alert_dialog.dart';
class _Action { class _Action {

View File

@ -1,6 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'service_item_search.dart'; import '../screens/search_service_item.dart';
class _ServiceItem { class _ServiceItem {
IconData icon; IconData icon;
@ -26,7 +26,7 @@ class ServiceItemBottomSheet extends StatelessWidget {
title: Text(item.title), title: Text(item.title),
onTap: () { onTap: () {
Navigator.of(context).pop(); Navigator.of(context).pop();
showSearch(context: context, delegate: ServiceItemSearch()); showSearch(context: context, delegate: SearchServiceItem());
}, },
); );
}).toList(), }).toList(),