Closed wolkenschieber closed 10 months ago
The PR #75 seems to fix the problem, could you please confirm?
@hungps Probably, I was aiming for a less intrusive solution: https://github.com/wolkenschieber/flutter_pokedex/commit/5c666a4377ad03fabddb5d914523a34082c187f1
Edit: PR #75 fixes the build issue.
I think renaming the widget to avoid Flutter's SearchBar is a good approach, that way we can import the widget anywhere without manually hiding the Flutter one
Flutter web doesn't build. When running
flutter build web
following error is emitted:Target dart2js failed: Exception: lib/ui/screens/home/sections/header_card_content.dart:51:13: Error: 'SearchBar' is imported from both 'package:flutter/src/material/search_anchor.dart' and 'package:pokedex/ui/widgets/search_bar.dart'. SearchBar(), ^^^^^^^^^ lib/ui/modals/search_modal.dart:15:18: Error: 'SearchBar' is imported from both 'package:flutter/src/material/search_anchor.dart' and 'package:pokedex/ui/widgets/search_bar.dart'. child: SearchBar(margin: EdgeInsets.zero), ^^^^^^^^^ Error: Compilation failed.
analysis_options.yaml
Flutter web doesn't build. When running
flutter build web
following error is emitted: