-
-
Save AliAnilKocak/118ac14d60248ae3d6680c5c3733e511 to your computer and use it in GitHub Desktop.
material_color_picker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void _openFullMaterialColorPicker() async { | |
_openDialog( | |
"Renk seç", | |
MaterialColorPicker( | |
colors: materialColors, | |
), | |
); | |
} | |
void _openDialog(String title, Widget content) { | |
showDialog( | |
context: context, | |
builder: (_) { | |
return AlertDialog( | |
contentPadding: const EdgeInsets.all(6.0), | |
title: Text(title), | |
content: content, | |
actions: [ | |
FlatButton( | |
child: Text('İptal'), | |
onPressed: Navigator.of(context).pop, | |
), | |
FlatButton( | |
child: Text('Kaydet'), | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}, | |
), | |
], | |
); | |
}, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment