hnvn / flutter_shimmer

A package provides an easy way to add shimmer effect in Flutter project
BSD 3-Clause "New" or "Revised" License
1.77k stars 200 forks source link

I have same Issue In My app When i use the release version the shimmer not update ui still loading and not show the data When i use Debug Mode Working Good. #43

Open mahmoudalaa97 opened 3 years ago

mahmoudalaa97 commented 3 years ago

I have same Issue In My app When i use the release version the shimmer not update ui still loading and not show the data When i use Debug Mode Working Good.

Version: shimmer version : 1.1.2

Flutter Doctor:

[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19041.746], locale en-GB)
    • Flutter version 1.22.4 at I:\flutter\flutter
    • Framework revision 1aafb3a8b9 (3 months ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at G:\android\Android\sdkn
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 49.0.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.52.1)
    • VS Code at C:\Users\Java\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.18.1

[√] Connected device (4 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 7.0 (API 24) (emulator)
    • Web Server (web)                   • web-server    • web-javascript • Flutter Tools
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 87.0.4280.141
    • Edge (web)                         • edge          • web-javascript • Microsoft Edge 87.0.664.75

• No issues found!

144475168_249059956834985_4623942928218675434_n 145022323_134559485174899_2982511775934826193_n

Code :

Scaffold(
        backgroundColor: MyColors().background_color,
        appBar: PreferredSize(
          preferredSize: Size.fromHeight(0),
          child: AppBar(
            backgroundColor: Colors.transparent,
            elevation: 0,
            brightness: Brightness.light,
          ),
        ),
        body: Consumer<CityDetailsProvider>(
            builder: (ctx, data, child) =>
                data.waitCityData || data.city_data.name == null
                    ? Shimmer.fromColors(
                        baseColor: Colors.grey[300],
                        highlightColor: Colors.grey[100],
                        enabled: data.waitCityData,
                        child: _buildCityDetails(data))
                    : _buildCityDetails(data)));
  }

_Originally posted by @mahmoudalaa97 in https://github.com/hnvn/flutter_shimmer/issues/36#issuecomment-770303153_

cmcnicholas commented 7 months ago

I'm experiencing the same thing, did you resolve this?

mahmoudalaa97 commented 7 months ago

Not yet I removed it from my code, so I don't know what the last update on it is