mirror of
https://gitlab.com/openlp/openlp-mobile-remote.git
synced 2024-12-22 20:02:53 +00:00
some modifications
This commit is contained in:
parent
5219e3967b
commit
1fa43e23f0
@ -14,14 +14,11 @@ class _OpenLPRemoteAppState extends State<OpenLPRemoteApp>
|
|||||||
with SingleTickerProviderStateMixin {
|
with SingleTickerProviderStateMixin {
|
||||||
TabController tabController;
|
TabController tabController;
|
||||||
SearchFloatingButton searchActionButton;
|
SearchFloatingButton searchActionButton;
|
||||||
int tabBarIndex;
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
tabBarIndex = 0;
|
tabController = TabController(length: 2, vsync: this);
|
||||||
tabController =
|
|
||||||
TabController(length: 2, vsync: this, initialIndex: tabBarIndex);
|
|
||||||
searchActionButton = SearchFloatingButton();
|
searchActionButton = SearchFloatingButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,11 +43,6 @@ class _OpenLPRemoteAppState extends State<OpenLPRemoteApp>
|
|||||||
Tab(text: 'SLIDES'),
|
Tab(text: 'SLIDES'),
|
||||||
],
|
],
|
||||||
controller: tabController,
|
controller: tabController,
|
||||||
onTap: (index) {
|
|
||||||
setState(() {
|
|
||||||
tabBarIndex = index;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
floatingActionButton: searchActionButton,
|
floatingActionButton: searchActionButton,
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class ServiceScreen extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
_ServiceScreenState createState() => _ServiceScreenState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ServiceScreenState extends State<ServiceScreen> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return Container(
|
||||||
|
child: Text('Nothing here...'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user