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

I am getting flex constant error #24

Closed
5exceptions-megharaypuriya opened this issue Jan 11, 2024 · 0 comments · Fixed by #26
Closed

I am getting flex constant error #24

5exceptions-megharaypuriya opened this issue Jan 11, 2024 · 0 comments · Fixed by #26

Comments

@5exceptions-megharaypuriya

Flex Constant Erorr
I have just pub get the dependencies when I added code bottom navigation bar and then run afterwards it give me error which mention in below please find.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See the error

../../../../../.pub-cache/hosted/pub.dev/stylish_bottom_bar-1.0.3/lib/src/bottom_bar.dart:421:21: Error: Cannot invoke a non-'const' constructor where a const expression is expected.
Try using a constructor or factory that is 'const'.
? const Flex(
^^^^
Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where:
    Script '/Applications/development/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1151

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Applications/development/flutter/bin/flutter'' finished with non-zero exit value 1

image

@MarsadMaqsood MarsadMaqsood mentioned this issue Apr 1, 2024
5 tasks
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

Successfully merging a pull request may close this issue.

1 participant