-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Flutter 3.19 #72
Comments
Got the same problem. Please help |
And if you're in a hurry... You can replace in your pubspec.yaml :
|
new version: rounded loading button plus: |
upgrade your flutter packages |
rounded_loading_button.dart final _btn = ButtonTheme( |
![]() this package is not working rounded_loading_button 2.1.0 use this package |
when i use the below code
RoundedLoadingButton(
controller: loginBtn,
onPressed: () {
if (formKey.currentState!.validate()) {
loginBtn.success();
} else {
loginBtn.error();
}
Future.delayed(const Duration(seconds: 1), () {
loginBtn.reset();
});
},
successColor: Colors.green,
child: Text('Login'.hardcoded))
the code works fine in flutter 3.16 without any issue and when i upgraded to 3.19 it shows the following error with build failed result.
../../.pub-cache/hosted/pub.dev/rounded_loading_button-2.1.0/lib/rounded_loading_button.dart:197:11: Error: No named parameter with the name 'onSurface'.
onSurface: widget.disabledColor,
^^^^^^^^^
../../Flutter_SDK/packages/flutter/lib/src/material/elevated_button.dart:151:22: Context: Found this candidate, but the arguments don't match.
static ButtonStyle styleFrom({
^^^^^^^^^
Target kernel_snapshot failed: Exception
The text was updated successfully, but these errors were encountered: