import 'package:flutter/material.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Generated App',
theme: new ThemeData(
primarySwatch: Colors.red,
primaryColor: const Color(0xFFf44336),
accentColor: const Color(0xFFf44336),
canvasColor: const Color(0xFFfafafa),
fontFamily: 'Roboto',
),
home: new MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({Key key}) : super(key: key);
@override
_MyHomePageState createState() => new _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text('微升'),
),
bottomNavigationBar: new BottomNavigationBar(
items: <BottomNavigationBarItem>[
BottomNavigationBarItem(icon: Icon(Icons.fiber_new,), title: Text('信息'),),
BottomNavigationBarItem(icon: Icon(Icons.live_tv,), title: Text('视频'),),
BottomNavigationBarItem(icon: Icon(Icons.phone_in_talk,), title: Text('聊天'),),
]
),
);
}
}