From 03421f476155e7dd9a135c78d2b0543ae4ca3da5 Mon Sep 17 00:00:00 2001 From: Lucas Delanier Date: Tue, 21 Mar 2023 21:11:04 +0100 Subject: [PATCH] goback to old onprimary and primary for color of button --- Sources/bowlin_project/lib/views/ingame_screen.dart | 4 ++-- Sources/bowlin_project/lib/views/ingame_screen2.dart | 4 ++-- Sources/bowlin_project/lib/views/welcome_screen.dart | 4 ++-- Sources/bowlin_project/lib/widgets/button_new_party.dart | 4 ++-- Sources/bowlin_project/lib/widgets/ingame_widgets.dart | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Sources/bowlin_project/lib/views/ingame_screen.dart b/Sources/bowlin_project/lib/views/ingame_screen.dart index 5bccba5..20a79f2 100644 --- a/Sources/bowlin_project/lib/views/ingame_screen.dart +++ b/Sources/bowlin_project/lib/views/ingame_screen.dart @@ -69,8 +69,8 @@ class _InGameScreenState extends State { width: 7, color: Color(0xff1ABAE0), ), - foregroundColor: Colors.transparent, - backgroundColor: Colors.transparent, + onPrimary: Colors.transparent, + primary: Colors.transparent, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(55), ), diff --git a/Sources/bowlin_project/lib/views/ingame_screen2.dart b/Sources/bowlin_project/lib/views/ingame_screen2.dart index 1fdbc60..8c7e330 100644 --- a/Sources/bowlin_project/lib/views/ingame_screen2.dart +++ b/Sources/bowlin_project/lib/views/ingame_screen2.dart @@ -89,8 +89,8 @@ class _InGameScreen2State extends State { width: 7, color: Color(0xff1ABAE0), ), - foregroundColor: Colors.transparent, - backgroundColor: Colors.transparent, + onPrimary: Colors.transparent, + primary: Colors.transparent, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(55), ), diff --git a/Sources/bowlin_project/lib/views/welcome_screen.dart b/Sources/bowlin_project/lib/views/welcome_screen.dart index b09bf14..4635b5c 100644 --- a/Sources/bowlin_project/lib/views/welcome_screen.dart +++ b/Sources/bowlin_project/lib/views/welcome_screen.dart @@ -66,8 +66,8 @@ class ButtonConnexion extends StatelessWidget { width: 7, color: Color(0xffFF419B), ), - backgroundColor: Colors.white, - foregroundColor: Color(0xffF40375), + primary: Colors.white, + onPrimary: Color(0xffF40375), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(35), ), diff --git a/Sources/bowlin_project/lib/widgets/button_new_party.dart b/Sources/bowlin_project/lib/widgets/button_new_party.dart index 3709cdb..427c604 100644 --- a/Sources/bowlin_project/lib/widgets/button_new_party.dart +++ b/Sources/bowlin_project/lib/widgets/button_new_party.dart @@ -17,8 +17,8 @@ class ButtonNewParty extends StatelessWidget { width: 4, color: Color(0xffFF419B), ), - backgroundColor: Colors.white, - foregroundColor: Color(0xffF40375), + primary: Colors.white, + onPrimary: Color(0xffF40375), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(35), ), diff --git a/Sources/bowlin_project/lib/widgets/ingame_widgets.dart b/Sources/bowlin_project/lib/widgets/ingame_widgets.dart index 781f548..e4755dc 100644 --- a/Sources/bowlin_project/lib/widgets/ingame_widgets.dart +++ b/Sources/bowlin_project/lib/widgets/ingame_widgets.dart @@ -166,8 +166,8 @@ class _FinalScoreBoardState extends State { width: 7, color: Color(0xff1ABAE0), ), - backgroundColor: Colors.transparent, - foregroundColor: Colors.transparent, + primary: Colors.transparent, + onPrimary: Colors.transparent, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(55), ), @@ -349,7 +349,7 @@ class _InGameCardConfigState extends State { style: ElevatedButton.styleFrom( elevation: 5, shadowColor: Color(0xffB70056), - foregroundColor: Color(0xffF40375), + onPrimary: Color(0xffF40375), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(10), ),