refactor: deprecated backgroundColor -> colorScheme.background

This commit is contained in:
Rafael Saes 2023-07-03 09:03:32 -03:00
parent c893da7a11
commit 719c360b97
2 changed files with 6 additions and 4 deletions

View file

@ -193,7 +193,8 @@ class DisclaimerBodyState extends State<DisclaimerPageBody> {
gradient: LinearGradient(
colors: [
Theme.of(context)
.backgroundColor
.colorScheme
.background
.withOpacity(0.0),
Theme.of(context).colorScheme.background,
],

View file

@ -321,7 +321,7 @@ class ExchangeTradeState extends State<ExchangeTradeForm> {
return Stack(
children: <Widget>[
Container(
color: Theme.of(popupContext).backgroundColor,
color: Theme.of(popupContext).colorScheme.background,
child: Center(
child: Image.asset(
'assets/images/birthday_cake.png'),
@ -372,7 +372,7 @@ class ExchangeTradeState extends State<ExchangeTradeForm> {
return Stack(
children: <Widget>[
Container(
color: Theme.of(popupContext).backgroundColor,
color: Theme.of(popupContext).colorScheme.background,
child: Center(
child: Image.asset(
'assets/images/birthday_cake.png'),
@ -384,7 +384,8 @@ class ExchangeTradeState extends State<ExchangeTradeForm> {
child: Container(
decoration: BoxDecoration(
color: Theme.of(popupContext)
.backgroundColor
.colorScheme
.background
.withOpacity(0.25)),
child: Center(
child: Padding(