Un ensemble de widgets flutter costum_widgets pour vous aider à gagner du temps lors de la création de vos mises en page.
Ajoutez le plug-in :
CustomCheck(
value: true,
activeColor: Colors.green,
type: CheckType.circle,
size: 24,
onChanged: (value){
},
)
CustomCheck(
value: value,
activeColor: Colors.green,
type: CheckType.circle,
size: 24,
builder: (ctx, size) {
return Icon(
Icons.star,
color: Colors.white,
size: size,
);
},
onChanged: (value) {
},
)
CustomSwitch(
value: value,
activeColor: Colors.green,
pointColor: Colors.white,
onChanged: (value){
},
)
Txt(
'Click here',
textSize: 28,
textAlign: TextAlign.center,
rich: Rich(
key: 'here',
onRichTap: (value) {
print('onRichTap: ${value}');
},
style: TextStyle(
fontWeight: FontWeight.bold,
decoration: TextDecoration.underline
)
),
)
Txt(
'click_message',
textSize: 28,
textAlign: TextAlign.center,
builderText: (value) => 'Click here',
),
DefaultButton(
value: 'Click',
activeColor: Colors.green,
textColor: Colors.white,
onPressed: () {},
)
CustomProgressButton(
isLoading: isLoading,
border: 16.0,
ignorePlatform: true,
onPressed: () async {
setState(() => isLoading = !isLoading);
await Future.delayed(Duration(seconds: 2));
setState(() => isLoading = !isLoading);
},
value: 'Click',
activeColor: Colors.green,
)
Aperçu (CustomCheck)
Aperçu (CustomSwitch)
Exemple
Widgets actuellement disponibles
Si vous avez des fonctionnalités que vous souhaitez voir dans cette application, n’hésitez pas à faire une suggestion. 🎉
N’oubliez pas de lui donner un ⭐ cela me motive à partager plus d’open source.
GitHub
Voir Github