Skip to content
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

The method 'FlatButton' isn't defined for the class 'PagewiseState<T>'. #110

Open
thaliashospitality opened this issue Sep 6, 2022 · 0 comments

Comments

@thaliashospitality
Copy link

Running Gradle task 'assembleDebug'...
../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pagewise-2.0.1/lib/flutter_pagewise.dart:312:30: Error: The method 'FlatButton' isn't defined for the class 'PagewiseState<T>'.
 - 'PagewiseState' is from 'package:flutter_pagewise/flutter_pagewise.dart' ('../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_pagewise-2.0.1/lib/flutter_pagewise.dart').
Try correcting the name to the name of an existing method, or defining a method named 'FlatButton'.
    var defaultRetryButton = FlatButton(
                             ^^^^^^^^^^


FAILURE: Build failed with an exception.

* Where:
Script '/Users/programmer/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1159

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/programmer/development/flutter/bin/flutter'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 36s
Exception: Gradle task assembleDebug failed with exit code 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant