zesage / flutter_earth

Flutter Earth Widget
Apache License 2.0
89 stars 40 forks source link

Flutter web image does not load properly #8

Open kerimamansaryyev opened 2 years ago

kerimamansaryyev commented 2 years ago

I have run the example app on flutter web, it does not show images properly. The tiles glitch. Please look at my pull request, I migrated the project to null safety. It works ok on the phones. The app glitches on both old and new versions

[✓] Flutter (Channel stable, 2.10.3, on macOS 12.1 21C52 darwin-arm, locale en-TM) • Flutter version 2.10.3 at /Users/kerimamansaryyev/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 7e9793dee1 (6 weeks ago), 2022-03-02 11:23:12 -0600 • Engine revision bd539267b4 • Dart version 2.16.1 • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) • Android SDK at /Users/kerimamansaryyev/Library/Android/sdk • Platform android-32, build-tools 32.1.0-rc1 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.2

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] VS Code (version 1.65.2) • VS Code at /Users/kerimamansaryyev/Downloads/Visual Studio Code.app/Contents • Flutter extension version 3.38.1

[✓] Connected device (2 available) • iPhone 13 Pro Max (mobile) • A03138E6-EB1A-4CDC-AFDE-0D0E381DB92F • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-4 (simulator) • Chrome (web) • chrome • web-javascript • Google Chrome 100.0.4896.75

[✓] HTTP Host Availability • All required HTTP hosts are available

samatzp commented 2 years ago

@mcfugger Hi, friend!

I think it would be better if you publish this change as a new package.

Nico3652 commented 2 years ago

Hello, @mcfugger I've cloned your fork but I'm still getting an image render issue on web :

Capture d’écran 2022-07-17 à 12 27 24

did you find a solution to fix the render ? Thanks