pedromassango / bottom_navy_bar

A beautiful and animated bottom navigation
https://youtu.be/jJPSKEEiN-E
Apache License 2.0
1.04k stars 219 forks source link

Getting an error with iOS build #115

Closed codoffer closed 4 months ago

codoffer commented 6 months ago

Flutter Flutter 3.22.0-36.0.pre.48 • channel master • https://github.com/flutter/flutter.git Framework • revision adc9307bc5 (8 days ago) • 2024-05-18 01:04:30 -0400 Engine • revision 552a965b70 Tools • Dart 3.5.0 (build 3.5.0-167.0.dev) • DevTools 2.36.0-dev.10

pubspec.yaml bottom_navy_bar: ^6.0.0

Error Failed to build iOS app Error (Xcode): ../../.pub-cache/hosted/pub.dev/bottom_navy_bar-6.0.0/lib/bottom_navy_bar.dart:68:58: Error: The getter 'bottomAppBarColor' isn't defined for the class 'ThemeData'.

Marwa-elsherif commented 6 months ago

I have the same error. After searching, I found that bottomAppBarColor is not provided, so I replaced it with bottomAppBarTheme.color. Also, don't forget to change the backgroundColor type to Color? instead of Color. I tried that, and it works.

codoffer commented 6 months ago

@Marwa-elsherif Thanks for your reply. We have used an alternative package - https://pub.dev/packages/salomon_bottom_bar

fibau commented 5 months ago

@Marwa-elsherif where to replace bottomAppBarColor? I can't find it anywhere.

Marwa-elsherif commented 5 months ago

after click on the link in the error message you can find it at the line number 68, you can also searching about it using ' Ctrl+ f ' then type ' bottomAppBarColor ' in the search field (that in case of using VS code)

antonio-pedro99 commented 4 months ago

Flutter Flutter 3.22.0-36.0.pre.48 • channel master • https://github.com/flutter/flutter.git Framework • revision adc9307bc5 (8 days ago) • 2024-05-18 01:04:30 -0400 Engine • revision 552a965b70 Tools • Dart 3.5.0 (build 3.5.0-167.0.dev) • DevTools 2.36.0-dev.10

pubspec.yaml bottom_navy_bar: ^6.0.0

Error Failed to build iOS app Error (Xcode): ../../.pub-cache/hosted/pub.dev/bottom_navy_bar-6.0.0/lib/bottom_navy_bar.dart:68:58: Error: The getter 'bottomAppBarColor' isn't defined for the class 'ThemeData'.

This has been fixed by #109 , recent update will be available soon