WalletConnectModalFlutter
WalletConnectModalFlutter copied to clipboard
example app build is broken on latest Flutter stable
Describe the bug A clear and concise description of what the bug is.
In the example project, the package fl_toast
seems to be conflicting with the latest flutter version since it uses parameters that have been removed from the Flutter SDK.
specifically, primaryVariant
and secondaryVariant
of the ColorScheme
theme class.
fluttertoast: ^8.2.2
To Reproduce Steps to reproduce the behavior:
- Upgrade to the latest version of Flutter 3.13 and run the app.
- Build fails specifying the error,
Expected behavior Build success and flutter app launches.
Screenshots
../../../../.pub-cache/hosted/pub.dev/fl_toast-3.1.0/lib/src/toasts.dart:324:9: Error: No named parameter with the name 'primaryVariant'.
primaryVariant: colorScheme.onPrimary,
^^^^^^^^^^^^^^
../../../../Documents/Development/flutter/packages/flutter/lib/src/material/color_scheme.dart:87:9: Context: Found this candidate, but the arguments don't match.
const ColorScheme({
^^^^^^^^^^^
Target kernel_snapshot failed: Exception
Desktop (please complete the following information):
- OS: MacOS
- Version 11.1
Smartphone (please complete the following information):
- Device: Pixel 7 Pro
- OS: Android
- Browser Chrome
- Version 13
Additional context Commenting the broken code in the library fixes the problem.
Ideally fluttertoast: ^8.2.2
should be used instead of fl_toast since it has not been actively maintained for over 2 years.