mirror of
https://gitlab.com/openlp/openlp-mobile-remote.git
synced 2024-12-22 11:52:49 +00:00
some modifications
This commit is contained in:
parent
5219e3967b
commit
1fa43e23f0
@ -14,14 +14,11 @@ class _OpenLPRemoteAppState extends State<OpenLPRemoteApp>
|
||||
with SingleTickerProviderStateMixin {
|
||||
TabController tabController;
|
||||
SearchFloatingButton searchActionButton;
|
||||
int tabBarIndex;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
tabBarIndex = 0;
|
||||
tabController =
|
||||
TabController(length: 2, vsync: this, initialIndex: tabBarIndex);
|
||||
tabController = TabController(length: 2, vsync: this);
|
||||
searchActionButton = SearchFloatingButton();
|
||||
}
|
||||
|
||||
@ -46,11 +43,6 @@ class _OpenLPRemoteAppState extends State<OpenLPRemoteApp>
|
||||
Tab(text: 'SLIDES'),
|
||||
],
|
||||
controller: tabController,
|
||||
onTap: (index) {
|
||||
setState(() {
|
||||
tabBarIndex = index;
|
||||
});
|
||||
},
|
||||
),
|
||||
),
|
||||
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