import 'dart:io';
import 'package:flutter/material.dart';
// Statefull HomePage
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => new _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return new WillPopScope(
onWillPop: () async => false,
child: new Scaffold(
appBar: new AppBar(
//leading: null,
automaticallyImplyLeading: false,
title: new Text("Home Page"),
backgroundColor: const Color(0xFF7CB342),
actions: <Widget>[
new IconButton(
color: Colors.white,
icon: new Icon(Icons.exit_to_app),
onPressed: () => exit(0),
),
],
),
body: new Center(
child: Text("Home Page"),
),
bottomNavigationBar: BottomNavigationBar(
items: <BottomNavigationBarItem>[
BottomNavigationBarItem(
icon: Icon(Icons.home, color: Colors.green),
title: Text(
"Hesap",
style: TextStyle(color: Colors.green),
),
),
BottomNavigationBarItem(
icon: Icon(Icons.credit_card, color: Colors.green),
title: Text(
"Kredi Kartları",
style: TextStyle(color: Colors.green),
),
),
BottomNavigationBarItem(
icon: Icon(Icons.clear_all, color: Colors.green),
title: Text(
"Havale",
style: TextStyle(color: Colors.green),
),
),
BottomNavigationBarItem(
icon: Icon(Icons.dehaze, color: Colors.green),
title: Text(
"Fatura Ödeme",
style: TextStyle(color: Colors.green),
),
),
],
),
),
);
}
}
