openlp-mobile-remote/lib/openlp_remote_app.dart

55 lines
1.4 KiB
Dart
Raw Normal View History

2019-07-24 21:00:24 +00:00
import 'package:flutter/material.dart';
import 'app_theme.dart';
import 'widgets/bottom_navigation_bar.dart';
import 'widgets/search_floating_button.dart';
class OpenLPRemoteApp extends StatefulWidget {
@override
_OpenLPRemoteAppState createState() => _OpenLPRemoteAppState();
}
class _OpenLPRemoteAppState extends State<OpenLPRemoteApp>
with SingleTickerProviderStateMixin {
TabController tabController;
SearchFloatingButton searchActionButton;
@override
void initState() {
super.initState();
2019-07-25 21:04:55 +00:00
tabController = TabController(length: 2, vsync: this);
2019-07-24 21:00:24 +00:00
searchActionButton = SearchFloatingButton();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: appTheme,
home: Scaffold(
appBar: AppBar(
title: Text('OpenLP Remote'),
actions: <Widget>[
IconButton(
icon: Icon(Icons.settings),
onPressed: () {},
tooltip: 'Settings',
),
],
bottom: TabBar(
tabs: <Widget>[
Tab(text: 'SERVICE'),
Tab(text: 'SLIDES'),
],
controller: tabController,
),
),
floatingActionButton: searchActionButton,
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
bottomNavigationBar: AppBottomNavigationBar(),
),
);
}
}