Modify:修正 bottomNavigationBar

iconButton 警告
This commit is contained in:
ryan730
2019-01-12 17:50:01 +08:00
parent ca1ac37881
commit ae1e1d9b9a
4 changed files with 10 additions and 5 deletions

View File

@ -10,7 +10,7 @@ import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter_rookie_book/common/iconNames.dart';
final int len = IconNames.Names.length;
final int len = IconNames.names.length;
/*
* IconButton 默认按钮的实例
@ -56,7 +56,7 @@ class IconButtonCustom extends StatelessWidget {
@override
Widget build(BuildContext context) {
final int iconIndex = Random.secure().nextInt(len);
final IconData type = IconNames.Names[iconIndex];
final IconData type = IconNames.names[iconIndex];
final _onPressed = onPressed;
return IconButton(
// 定义图标在IconButton中的定位方式,AlignmentGeometry 如果父Widget尺寸大于child Widget尺寸这个属性设置会起作用有很多种对齐方式。