You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class AccentColorOverride extends StatelessWidget {
const AccentColorOverride({Key key, this.color, this.child})
: super(key: key);
final Color color;
final Widget child;
@override
Widget build(BuildContext context) {
return Theme(
child: child,
data: Theme.of(context).copyWith(
accentColor: color,
brightness: Brightness.dark //needs to be added
),
);
}
}
Thank you.
The text was updated successfully, but these errors were encountered:
vitorpavanelli
changed the title
Tutorial needs to be updated to reflect fix for button color change
MDC-103 Tutorial needs to be updated to reflect fix for button color change
Dec 13, 2018
vitorpavanelli
changed the title
MDC-103 Tutorial needs to be updated to reflect fix for button color change
MDC-103: Tutorial needs to be updated to reflect fix for button color change
Dec 13, 2018
Hi,
I might be wrong, but I think there is the need to update the code shown in the tutorial with the fix applied in the branch.
Please, can someone take a look at it?
Here are the changes I saw:
Thank you.
The text was updated successfully, but these errors were encountered: