Created
November 28, 2022 11:57
-
-
Save just1984/736c275681f5ec657a046903e2dc46aa to your computer and use it in GitHub Desktop.
complete flutter code
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
Widget build(BuildContext context) { | |
final ButtonStyle style = TextButton.styleFrom( | |
foregroundColor: Theme.of(context).colorScheme.onPrimary, | |
); | |
return Scaffold ( | |
appBar: AppBar( | |
leading: Icon(Icons.favorite), | |
title: const Text('The Title'), | |
actions: <Widget>[ | |
TextButton( | |
style: style, | |
onPressed: () {}, | |
child: const Text('RED'), | |
), | |
TextButton( | |
style: style, | |
onPressed: () {}, | |
child: const Text('GREEN'), | |
), | |
TextButton( | |
style: style, | |
onPressed: () {}, | |
child: const Text('BLUE'), | |
), | |
], | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment