Fix exchange provider overflow (#560)

Fix splash effect style for the new Flutter button configs

Omar Hatem committed Oct 24, 2022 at 21:23 UTC ca36a425a7d627c6f346153314f9536bfc365eb2
1 file changed +7 -4
lib/src/screens/exchange/widgets/present_provider_picker.dart
+7 -4
@@ -20,9 +20,12 @@ class PresentProviderPicker extends StatelessWidget {
20
21 return TextButton(
22 onPressed: () => _presentProviderPicker(context),
23 - // FIX-ME: Style
24 - //highlightColor: Colors.transparent,
25 - //splashColor: Colors.transparent,
23 + style: ButtonStyle(
24 + padding: MaterialStateProperty.all(EdgeInsets.zero),
25 + splashFactory: NoSplash.splashFactory,
26 + foregroundColor: MaterialStateProperty.all(Colors.transparent),
27 + overlayColor: MaterialStateProperty.all(Colors.transparent),
28 + ),
29 child: Row(
30 mainAxisSize: MainAxisSize.min,
31 crossAxisAlignment: CrossAxisAlignment.start,
@@ -46,7 +49,7 @@ class PresentProviderPicker extends StatelessWidget {
49 style: TextStyle(
50 fontSize: 10.0,
51 fontWeight: FontWeight.w500,
49 - color: Theme.of(context).textTheme!.headline5!.color!)))
52 + color: Theme.of(context).textTheme.headline5!.color!)))
53 ],
54 ),
55 SizedBox(width: 5),