提供了两套预设的主题UI 这些UI有很多的常量可以直接引入使用
如颜色, 按钮,图标
Colors.white // 白色颜色
Icons.home // home 图标
FloatingActionButton...Text('消息'))
],
currentIndex: _currentIndex,
onTap: (int index) {
setState...Home();
}
class _Home extends State {
int _counter = 0;
void _incrementCounter() {
setState...(() {_counter++;});
}
使用void关键字修饰, 使用setState 来修改内部变量
问题1:
假如页面停留在首页, 此时来了一个消息,需要在消息的导航栏上加上徽标,该如何处理...问题3:
目前dart辨析的时候,有很多括号, 格式不够优美,有没有第三方,成熟的组件以供使用
问题4:
如何在页面切换时 ,使用动画,自己写?框架有预设吗?