Merge branch 'develop' of github.com:alibaba/flutter-common-widgets-app into develop

This commit is contained in:
sanfan.hx
2019-01-13 20:01:25 +08:00
7 changed files with 443 additions and 33 deletions

View File

@ -119,9 +119,9 @@ class CheckboxListTileDefault extends StatelessWidget {
return CheckboxListTile(
title: Text('一个简单的例子'),
activeColor: Colors.red,
value: widget.valBool,
value: widget.valBool['val'],
onChanged: (bool value) {
parant.setState(()=> widget.valBool = value);
parant.setState(()=> widget.valBool['val'] = value);
},
secondary: const Icon(Icons.hourglass_empty),
);

View File

@ -37,7 +37,7 @@ const String _CheckboxListTileText2 =
class Demo extends StatefulWidget {
static const String routeName = '/element/Form/Checkbox/CheckboxListTile';
final bool valBool = true;
final Map<String,bool> valBool = {'val':true};
@override
_DemoState createState() => _DemoState();
}