toaru-stickers-app/lib/main.dart

39 lines
914 B
Dart
Raw Normal View History

2020-08-07 07:10:51 +02:00
import 'package:flutter/material.dart';
import 'package:railgun_t_whatsapp/src/about.dart';
import 'package:railgun_t_whatsapp/src/list_packs.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
final String title = 'Toaru Stickers';
@override
Widget build(BuildContext context) {
return MaterialApp(
title: title,
home: DefaultTabController(
length: 2,
child: Scaffold(
appBar: AppBar(
title: Text(title),
backgroundColor: Colors.amber,
bottom: TabBar(
tabs: [
Tab(text: "List Stickers"),
Tab(text: "About"),
],
),
),
body: TabBarView(
children: [
ListPacks(),
About()
],
),
),
),
debugShowCheckedModeBanner: false
);
}
}