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
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