Skip to content
Snippets Groups Projects
Commit d051f13c authored by Leon Tappe's avatar Leon Tappe 🔥
Browse files

fix ink splash on buttons

parent f659c775
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,8 @@ final themeData = ThemeData(
foregroundColor: MaterialStateProperty.resolveWith<Color>((_) => Colors.white),
backgroundColor: MaterialStateProperty.resolveWith<Color>(
(state) => state.contains(MaterialState.disabled) ? primary.withAlpha(128) : primary),
splashFactory: InkRipple.splashFactory,
overlayColor: MaterialStateProperty.resolveWith<Color>((_) => Colors.white24),
textStyle: MaterialStateProperty.resolveWith<TextStyle>((_) => const TextStyle(
fontWeight: FontWeight.w700,
fontFamily: 'FFMeta',
......@@ -71,6 +73,8 @@ final themeData = ThemeData(
backgroundColor: MaterialStateProperty.resolveWith<Color>(
(state) => state.contains(MaterialState.disabled) ? primary.withAlpha(128) : primary),
foregroundColor: MaterialStateProperty.resolveWith<Color>((_) => Colors.white),
splashFactory: InkRipple.splashFactory,
overlayColor: MaterialStateProperty.resolveWith<Color>((_) => Colors.white24),
textStyle: MaterialStateProperty.resolveWith<TextStyle>((_) => const TextStyle(
fontWeight: FontWeight.w700,
fontFamily: 'FFMeta',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment