Last active
March 5, 2020 09:39
-
-
Save xinthink/452e4fdbab98f7e7a035dd4325bc7ac7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
showModalBottomSheet( | |
context: context, | |
backgroundColor: _noteColor, | |
builder: (context) => ChangeNotifierProvider.value( | |
value: _note, | |
child: Consumer<Note>( | |
builder: (_, note, __) => Container( | |
color: note.color ?? kDefaultNoteColor, // use the latest picked color | |
child: Column( | |
mainAxisSize: MainAxisSize.min, | |
children: <Widget>[ | |
NoteActions(), // list of available actions: archiving, deletion... | |
LinearColorPicker(), // a horizontal color list | |
], | |
), | |
), | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment