mirror of
https://gitlab.com/openlp/openlp-mobile-remote.git
synced 2024-12-22 11:52:49 +00:00
better file organization
This commit is contained in:
parent
074e61fab8
commit
a18621b2be
@ -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(),
|
||||
|
@ -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;
|
@ -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
|
@ -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 {
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user