mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-15 03:04:25 +08:00
build: code format
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
/// @Author: xiaojia.dxj
|
||||
/// @Date: 2018-12-18 15:14:10
|
||||
/// @Date: 2018-12-18 15:14:10
|
||||
/// @Last Modified by: xiaojia.dxj
|
||||
/// @Last Modified time: 2018-12-18 19:39:41
|
||||
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ChipThemeDemo extends StatefulWidget {
|
||||
@ -16,11 +16,13 @@ class _ChipThemeDemoState extends State<ChipThemeDemo> {
|
||||
Widget build(BuildContext context) {
|
||||
return ChipTheme(
|
||||
data: ChipThemeData.fromDefaults(
|
||||
// brightness: Brightness.dark,
|
||||
labelStyle: TextStyle(fontSize: 15.0),
|
||||
primaryColor: Colors.red,secondaryColor: Colors.red.shade800),
|
||||
// brightness: Brightness.dark,
|
||||
labelStyle: TextStyle(fontSize: 15.0),
|
||||
primaryColor: Colors.red,
|
||||
secondaryColor: Colors.red.shade800),
|
||||
child: ChoiceChip(
|
||||
padding: EdgeInsets.only(left: 100.0,right: 100.0,top: 10.0,bottom: 10.0),
|
||||
padding:
|
||||
EdgeInsets.only(left: 100.0, right: 100.0, top: 10.0, bottom: 10.0),
|
||||
label: Text('down'),
|
||||
onSelected: (bool value) {
|
||||
setState(() {
|
||||
@ -32,6 +34,3 @@ class _ChipThemeDemoState extends State<ChipThemeDemo> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user