mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-06-04 00:58:45 +08:00
Merge branch 'develop' of github.com:alibaba/flutter-common-widgets-app into develop
This commit is contained in:
@ -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),
|
||||
);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user