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

View File

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

View File

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

View File

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

View File

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