From 1fa43e23f0a1e292eb4124bea183d599b644614e Mon Sep 17 00:00:00 2001 From: Daniel Borges Date: Thu, 25 Jul 2019 18:04:55 -0300 Subject: [PATCH] some modifications --- lib/openlp_remote_app.dart | 10 +--------- lib/screens/service_screen.dart | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/lib/openlp_remote_app.dart b/lib/openlp_remote_app.dart index 31034c4..fc6d013 100644 --- a/lib/openlp_remote_app.dart +++ b/lib/openlp_remote_app.dart @@ -14,14 +14,11 @@ class _OpenLPRemoteAppState extends State 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 Tab(text: 'SLIDES'), ], controller: tabController, - onTap: (index) { - setState(() { - tabBarIndex = index; - }); - }, ), ), floatingActionButton: searchActionButton, diff --git a/lib/screens/service_screen.dart b/lib/screens/service_screen.dart index e69de29..4d2a28b 100644 --- a/lib/screens/service_screen.dart +++ b/lib/screens/service_screen.dart @@ -0,0 +1,15 @@ +import 'package:flutter/material.dart'; + +class ServiceScreen extends StatefulWidget { + @override + _ServiceScreenState createState() => _ServiceScreenState(); +} + +class _ServiceScreenState extends State { + @override + Widget build(BuildContext context) { + return Container( + child: Text('Nothing here...'), + ); + } +} \ No newline at end of file