Skip to content

Issue with Flutter 3.19  #72

Description

@razer-santhosh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions