From b10eab54e47d96affb580c70bd13f45f3eca6212 Mon Sep 17 00:00:00 2001 From: Thomas Linck Date: Tue, 9 Mar 2021 10:34:58 +0100 Subject: [PATCH] Fix elevated button --- example/lib/main.dart | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index d1b5541..aa068c7 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -173,9 +173,13 @@ class _MyAppState extends State { ), Padding( padding: const EdgeInsets.all(8.0), - child: RaisedButton( - color: Theme.of(context).accentColor, - padding: EdgeInsets.symmetric(vertical: 16), + child: ElevatedButton( + style: ButtonStyle( + backgroundColor: MaterialStateProperty.resolveWith( + (states) => Theme.of(context).accentColor), + padding: MaterialStateProperty.resolveWith( + (states) => EdgeInsets.symmetric(vertical: 16)), + ), child: Text("SEND", style: Theme.of(context).accentTextTheme.button), onPressed: () {