some modifications

This commit is contained in:
Daniel Borges 2019-07-25 18:04:55 -03:00
parent 5219e3967b
commit 1fa43e23f0
2 changed files with 16 additions and 9 deletions

View File

@ -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,

View File

@ -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...'),
);
}
}