Flutter Gallery is a resource to help developers evaluate and use Flutter

Overview

Flutter Gallery

Flutter Gallery is a resource to help developers evaluate and use Flutter. It is a collection of Material Design & Cupertino widgets, behaviors, and vignettes implemented with Flutter. We often get asked how one can see Flutter in action, and this gallery demonstrates what Flutter provides and how it behaves in the wild.

Flutter Gallery

Running Flutter Gallery on Flutter's master channel

The Flutter Gallery targets Flutter's master channel. As such, it can take advantage of new SDK features that haven't landed in the stable channel.

If you'd like to run the Flutter Gallery, make sure to switch to the master channel first:

flutter channel master
flutter upgrade

When you're done, use this command to return to the safety of the stable channel:

flutter channel stable
flutter upgrade

Supported Platforms

Flutter Gallery has been built to support multiple platforms. This includes:

  • Android
  • iOS
  • web
  • macOS
  • Linux
  • Windows

An APK, macOS, Linux, and Windows builds are available for download. You can find it on the web at gallery.flutter.dev and on the Google Play Store.

You can build from source yourself for any of these platforms, though, please note desktop support must be enabled. For example, to run the app on Windows:

cd gallery/
flutter config --enable-windows-desktop
flutter create .
flutter run -d windows

Additionally, the UI adapts between mobile and desktop layouts regardless of the platform it runs on. This is determined based on window size as outlined in adaptive.dart.

To include a new splash animation

  1. Convert your animation to a .gif file. Ideally, use a background color of 0xFF030303 to ensure the animation blends into the background of the app.

  2. Add your new .gif file to the assets directory under assets/splash_effects. Ensure the name follows the format splash_effect_$num.gif. The number should be the next number after the current largest number in the repository.

  3. Update the map _effectDurations in splash.dart to include the number of the new .gif as well as its estimated duration. The duration is used to determine how long to display the splash animation at launch.

Generating localizations

If this is the first time building the Flutter gallery, the localized code will not be present in the project directory. However, after running the application for the first time, a synthetic package will be generated containing the app's localizations through importing package:flutter_gen/gen_l10n/.

See separate README for more details.

Generating highlighted code segments

To generate highlighted code segments, make sure that you have grinder installed by running

flutter pub get

To generate code segments (see separate README for more details):

flutter pub run grinder update-code-segments

Creating a new release (for Flutter org members)

  1. Create a PR to bump the version number up in pubspec.yaml. Use semantic versioning to determine which number to increment. The version number after the +should also be incremented. For example 1.2.3+010203 with a patch should become 1.2.4+010204.

  2. Create a tag on master branch after the version bump PR is merged. This will start a Github Actions job that will draft a release with desktop applications and apk included.

    git pull upstream master
    git tag v1.2.3
    git push upstream v1.2.3
  3. Publish the firebase hosted web release.

    • Log in to the account that has write access to gallery-flutter-dev with firebase login
    • flutter pub run grinder build-web
    • firebase deploy -P prod to deploy to production (equivalent to firebase deploy).
    • firebase deploy -P staging to deploy to staging. Check with the team to see if the staging instance is currently used for a special purpose.
  4. Write some release notes about what changes have been done since the last release.

  5. Publish the Android release

    • Ensure you have the correct signing certificates.
    • Create the app bundle with flutter build appbundle.
    • Include the release notes in "What's new".
    • Upload to the Play store console and publish.
  6. Go to Releases and see the latest draft.

    • Include the release notes in the description.
    • Publish the release.
Comments
  • Run log: `Null check operator used on a null value`; Dart analysis: `The argument type 'double?' can't be assigned to the parameter type 'num'.`

    Run log: `Null check operator used on a null value`; Dart analysis: `The argument type 'double?' can't be assigned to the parameter type 'num'.`

    Hi I suppose I have migrated all but this block to null safety: https://github.com/flutter/gallery/blob/master/lib/pages/home.dart#L1116-L1120

    I tried changing it to:

    double _carouselHeight(double scaleFactor, BuildContext context) =>
      math.max(
        _carouselHeightMin *
          GalleryOptions.of(context)!.textScaleFactor(context)! *
          scaleFactor,
        _carouselHeightMin
      );
    

    which results in no errors on the Dart Analysis, but when I start the app, I get Null check operator used on a null value. Could you help me solve this one? Thank you so much!

    bug 
    opened by hpoit 18
  • Error

    Error "Unexpected child "deferred-components" found under "flutter". "

    Describe the bug Whenever I am trying to run flutter run -d chrome or trying to run project I get error saying

    Unexpected child "deferred-components" found under "flutter". Please correct the pubspec.yaml file at D:\yaseen\gallery\pubspec.yaml

    image

    bug 
    opened by agwanyaseen 15
  • android.content.res.Resources$NotFoundException: File res/drawable-v21/launch_background.xml

    android.content.res.Resources$NotFoundException: File res/drawable-v21/launch_background.xml

    Describe the bug

    Previously I was building and running fine. I don't remember making any change, but recently, I run into such errors while building and running the app on a Samsung Galaxy Note 3 through Android Studio:

    Launching lib\main.dart on SM N900 in debug mode...
    Running Gradle task 'assembleDebug'...
    E/AndroidRuntime(12731): FATAL EXCEPTION: main
    E/AndroidRuntime(12731): Process: io.flutter.demo.gallery, PID: 12731
    E/AndroidRuntime(12731): java.lang.RuntimeException: Unable to start activity ComponentInfo{io.flutter.demo.gallery/io.flutter.demo.gallery.MainActivity}: android.content.res.Resources$NotFoundException: File res/drawable-v21/launch_background.xml from drawable resource ID #0x7f040000
    E/AndroidRuntime(12731): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2693)
    E/AndroidRuntime(12731): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)
    E/AndroidRuntime(12731): 	at android.app.ActivityThread.access$900(ActivityThread.java:177)
    E/AndroidRuntime(12731): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)
    E/AndroidRuntime(12731): 	at android.os.Handler.dispatchMessage(Handler.java:102)
    E/AndroidRuntime(12731): 	at android.os.Looper.loop(Looper.java:145)
    E/AndroidRuntime(12731): 	at android.app.ActivityThread.main(ActivityThread.java:5942)
    E/AndroidRuntime(12731): 	at java.lang.reflect.Method.invoke(Native Method)
    E/AndroidRuntime(12731): 	at java.lang.reflect.Method.invoke(Method.java:372)
    E/AndroidRuntime(12731): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
    E/AndroidRuntime(12731): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
    E/AndroidRuntime(12731): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-v21/launch_background.xml from drawable resource ID #0x7f040000
    E/AndroidRuntime(12731): 	at android.content.res.Resources.loadDrawableForCookie(Resources.java:3752)
    E/AndroidRuntime(12731): 	at android.content.res.Resources.loadDrawable(Resources.java:3620)
    E/AndroidRuntime(12731): 	at android.content.res.Resources.getDrawable(Resources.java:1852)
    E/AndroidRuntime(12731): 	at android.content.res.Resources.getDrawable(Resources.java:1818)
    E/AndroidRuntime(12731): 	at io.flutter.embedding.android.FlutterActivity.getSplashScreenFromManifest(FlutterActivity.java:495)
    E/AndroidRuntime(12731): 	at io.flutter.embedding.android.FlutterActivity.provideSplashScreen(FlutterActivity.java:469)
    E/AndroidRuntime(12731): 	at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onCreateView(FlutterActivityAndFragmentDelegate.java:301)
    E/AndroidRuntime(12731): 	at io.flutter.embedding.android.FlutterActivity.createFlutterView(FlutterActivity.java:520)
    E/AndroidRuntime(12731): 	at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:414)
    E/AndroidRuntime(12731): 	at android.app.Activity.performCreate(Activity.java:6283)
    E/AndroidRuntime(12731): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
    E/AndroidRuntime(12731): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    E/AndroidRuntime(12731): 	... 10 more
    E/AndroidRuntime(12731): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #4: <item> tag requires a 'drawable' attribute or child tag defining a drawable
    E/AndroidRuntime(12731): 	at android.graphics.drawable.LayerDrawable.inflateLayers(LayerDrawable.java:202)
    E/AndroidRuntime(12731): 	at android.graphics.drawable.LayerDrawable.inflate(LayerDrawable.java:147)
    E/AndroidRuntime(12731): 	at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:1150)
    E/AndroidRuntime(12731): 	at android.graphics.drawable.Drawable.createFromXml(Drawable.java:1063)
    E/AndroidRuntime(12731): 	at android.content.res.Resources.loadDrawableForCookie(Resources.java:3736)
    E/AndroidRuntime(12731): 	... 21 more
    

    Flutter doctor Copy and paste the output of flutter doctor -v here

    >flutter doctor -v
    [√] Flutter (Channel master, 1.24.0-8.0.pre.1, on Microsoft Windows [Version 10.0.19041.264], locale en-US)
        • Flutter version 1.24.0-8.0.pre.1 at C:\Users\m3\repos\flutter
        • Framework revision e444b1e3fa (5 weeks ago), 2020-10-30 00:41:52 -0400
        • Engine revision 99cc50dfff
        • Dart version 2.11.0 (build 2.11.0-266.0.dev)
    
    [√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
        • Android SDK at C:\Users\m3\AppData\Local\Android\sdk
        • Platform android-30, build-tools 30.0.1
        • 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\Google\Chrome\Application\chrome.exe
    
    [√] Android Studio (version 4.0)
        • Android Studio at C:\Program Files\Android\Android Studio
        • Flutter plugin version 50.0.1
        • Dart plugin version 193.7547
        • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    
    [√] Connected device (3 available)
        • SM N900 (mobile) • 4d00b6ae472d80eb • android-arm    • Android 5.0 (API 21)
        • Web Server (web) • web-server       • web-javascript • Flutter Tools
        • Chrome (web)     • chrome           • web-javascript • Google Chrome 87.0.4280.66
    
    • No issues found!
    
    

    To Reproduce Steps to reproduce the behavior:

    1. Git checkout master branch
    2. Open Android Studio
    3. Connect your Android smartphone device to computer through USB port
    4. Click the green triangle to build and run the app on the device
    5. Error are thrown on terminal

    Expected behavior No error or exception is expected. The app should build and run fine on the device.

    Screenshots

    image

    Desktop information:

    • OS: Windows 10
    • Browser Opera
    • Version:72.0.3815.400

    Smartphone information:

    • Device: Samsung Galaxy Note 3
    • OS: Android 5.0
    • Browser Opera
    • Version 60.3.3004.55692

    Additional context Such posts show that maybe the Gradle build system needs to be configured differently, not sure:

    https://stackoverflow.com/a/39419701/3405291

    bug 
    opened by Megidd 12
  • Deferred components causes release builds to fail

    Deferred components causes release builds to fail

    flutter build appbundle -v --no-deferred-components successfully completes, whereas flutter build appbundle -v fails:

    [   +2 ms] [   +1 ms] Running font-subset: /Users/plg/development/flutter-dev/bin/cache/artifacts/engine/darwin-x64/font-subset
    /Users/plg/development/gallery/build/app/intermediates/flutter/release/flutter_assets/fonts/MaterialIcons-Regular.otf
    /Users/plg/development/flutter-dev/bin/cache/artifacts/material_fonts/MaterialIcons-Regular.otf, using codepoints 58727 58332 57490 57491 57706 57496 57694
    57695 57810 57609 57657 57882 57504 57634 57415 58372 58370 58814 58813 57846 58193 57402 59102 57759 59039 57947 57400 57425 57411 57461 57649 57399 57638
    57632 57689 57423 59069 58514 58240 57785 57726 57948 57588 57583 58874 58873 59070 58513 58530 57898 58751 58554 58548 58447 58729 58121 58659 57686 58198
    59011 58172 57718 58231 58059 57500 58173 57952 57782 58675 58569 57454 58146 58834 57522 58438 58563 58361 58938 57690 58286 57501 57498 58665 57757 57424
    58195 58337 58136 58780 58648 57434 58771
    [  +94 ms] [ +149 ms] aot_android_asset_bundle: Complete
    [+585724 ms] [+585674 ms] ===== CRASH =====
    [  +10 ms] [  +34 ms] si_signo=Segmentation fault: 11(11), si_code=1, si_addr=0x17fb1b1af
    [        ] [   +9 ms] Dart snapshot generator failed with exit code -6
    [+2470 ms] [+2467 ms] ===== CRASH =====
    [        ] [        ] si_signo=Segmentation fault: 11(11), si_code=1, si_addr=0x17fb1b1af
    [        ] [        ] Dart snapshot generator failed with exit code -6
    [+15399 ms] [+15402 ms] android_aot_release_android-arm: Complete
    [ +800 ms] [ +790 ms] android_aot_bundle_release_android-arm: Starting due to {}
    [        ] [  +21 ms] android_aot_bundle_release_android-arm: Complete
    [ +299 ms] [ +274 ms] android_aot_deferred_components_bundle_release_android-arm: Starting due to {}
    [  +99 ms] [ +109 ms] android_aot_deferred_components_bundle_release_android-arm: Complete
    [ +301 ms] [ +303 ms] Persisting file store
    [        ] [  +21 ms] Done persisting file store
    [        ] [  +28 ms] Target android_aot_release_android-x64 failed: Exception: AOT snapshotter exited with code -6
    [  +99 ms]            #0      AndroidAot.build (package:flutter_tools/src/build_system/targets/android.dart:258:7)
    [        ]            <asynchronous suspension>
    [        ]            #1      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:836:9)
    [        ]            <asynchronous suspension>
    [        ]            #2      Future.wait.<anonymous closure> (dart:async/future.dart)
    [        ]            <asynchronous suspension>
    [        ]            #3      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:774:32)
    [        ]            <asynchronous suspension>
    [        ]            #4      Future.wait.<anonymous closure> (dart:async/future.dart)
    [        ]            <asynchronous suspension>
    [        ]            #5      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:774:32)
    [ +293 ms]            <asynchronous suspension>
    [        ]            #6      Future.wait.<anonymous closure> (dart:async/future.dart)
    [        ]            <asynchronous suspension>
    [        ]            #7      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:774:32)
    [        ]            <asynchronous suspension>
    [        ]            #8      Future.wait.<anonymous closure> (dart:async/future.dart)
    [        ]            <asynchronous suspension>
    [        ]            #9      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:774:32)
    [        ]            <asynchronous suspension>
    [        ]            #10     FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:603:16)
    [+4409 ms]            <asynchronous suspension>
    [        ]            #11     AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:314:32)
    [        ]            <asynchronous suspension>
    [        ]            #12     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
    [        ]            <asynchronous suspension>
    [        ]            #13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    [        ]            <asynchronous suspension>
    [        ]            #14     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
    [        ]            <asynchronous suspension>
    [        ]            #15     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
    [ +198 ms]            <asynchronous suspension>
    [        ]            #16     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    [        ]            <asynchronous suspension>
    [        ]            #17     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
    [        ]            <asynchronous suspension>
    [        ]            #18     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
    [        ]            <asynchronous suspension>
    [        ]            #19     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    [        ]            <asynchronous suspension>
    [        ]            #20     main (package:flutter_tools/executable.dart:92:3)
    [+1346 ms]            <asynchronous suspension>
    [        ] [        ] Target android_aot_release_android-arm64 failed: Exception: AOT snapshotter exited with code -6
    [        ]            #0      AndroidAot.build (package:flutter_tools/src/build_system/targets/android.dart:258:7)
    [        ]            <asynchronous suspension>
    [        ]            #1      _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:836:9)
    [        ]            <asynchronous suspension>
    [        ]            #2      Future.wait.<anonymous closure> (dart:async/future.dart)
    [        ]            <asynchronous suspension>
    [        ]            #3      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:774:32)
    [ +288 ms]            <asynchronous suspension>
    [        ]            #4      Future.wait.<anonymous closure> (dart:async/future.dart)
    [        ]            <asynchronous suspension>
    [        ]            #5      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:774:32)
    [        ]            <asynchronous suspension>
    [        ]            #6      Future.wait.<anonymous closure> (dart:async/future.dart)
    [        ]            <asynchronous suspension>
    [        ]            #7      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:774:32)
    [        ]            <asynchronous suspension>
    [        ]            #8      Future.wait.<anonymous closure> (dart:async/future.dart)
    [        ]            <asynchronous suspension>
    [+1708 ms]            #9      _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:774:32)
    [        ]            <asynchronous suspension>
    [        ]            #10     FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:603:16)
    [        ]            <asynchronous suspension>
    [        ]            #11     AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:314:32)
    [        ]            <asynchronous suspension>
    [        ]            #12     FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
    [        ]            <asynchronous suspension>
    [        ]            #13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    [        ]            <asynchronous suspension>
    [ +340 ms]            #14     CommandRunner.runCommand (package:args/command_runner.dart:209:13)
    [        ]            <asynchronous suspension>
    [        ]            #15     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
    [        ]            <asynchronous suspension>
    [        ]            #16     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    [        ]            <asynchronous suspension>
    [        ]            #17     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
    [        ]            <asynchronous suspension>
    [        ]            #18     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
    [+1495 ms]            <asynchronous suspension>
    [        ]            #19     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    [        ]            <asynchronous suspension>
    [        ]            #20     main (package:flutter_tools/executable.dart:92:3)
    [        ]            <asynchronous suspension>
    [        ] [  +15 ms] 
    [        ]            #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
    [        ]            #1      AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:331:7)
    [        ]            <asynchronous suspension>
    [        ]            #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
    [        ]            <asynchronous suspension>
    [+5655 ms]            #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    [   +2 ms]            <asynchronous suspension>
    [        ]            #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
    [        ]            <asynchronous suspension>
    [        ]            #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
    [        ]            <asynchronous suspension>
    [        ]            #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    [        ]            <asynchronous suspension>
    [        ]            #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
    [ +634 ms]            <asynchronous suspension>
    [        ]            #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
    [        ]            <asynchronous suspension>
    [        ]            #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
    [        ]            <asynchronous suspension>
    [        ]            #10     main (package:flutter_tools/executable.dart:92:3)
    [        ]            <asynchronous suspension>
    [   +2 ms] FAILURE: Build failed with an exception.
    [        ] * Where:
    [        ] Script '/Users/plg/development/flutter-dev/packages/flutter_tools/gradle/flutter.gradle' line: 1005
    [        ] * What went wrong:
    [        ] Execution failed for task ':app:compileFlutterBuildRelease'.
    [  +80 ms] > Process 'command '/Users/plg/development/flutter-dev/bin/flutter'' finished with non-zero exit value 1
    [        ] * Try:
    [        ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    [        ] * Get more help at https://help.gradle.org
    [        ] BUILD FAILED in 11m 35s
    [   +2 ms] [  +27 ms] "flutter assemble" took 690,857ms.
    [        ] [ +139 ms] ensureAnalyticsSent: 136ms
    [        ] [   +3 ms] Running shutdown hooks
    [        ] [        ] Shutdown hooks complete
    [        ] [        ] exiting with code 1
    [        ] > Task :app:compileFlutterBuildRelease FAILED
    [        ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
    [        ] Use '--warning-mode all' to show the individual deprecation warnings.
    [ +149 ms] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings
    [   +1 ms] 1 actionable task: 1 executed
    [  +96 ms] Running Gradle task 'bundleRelease'... (completed in 712.7s)
    [ +374 ms] "flutter appbundle" took 730,893ms.
    [ +117 ms] Gradle task bundleRelease failed with exit code 1
    [   +9 ms] 
               #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
               #1      AndroidGradleBuilder.buildGradleApp (package:flutter_tools/src/android/gradle.dart:383:9)
               <asynchronous suspension>
               #2      AndroidGradleBuilder.buildAab (package:flutter_tools/src/android/gradle.dart:196:5)
               <asynchronous suspension>
               #3      BuildAppBundleCommand.runCommand (package:flutter_tools/src/commands/build_appbundle.dart:148:5)
               <asynchronous suspension>
               #4      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1125:27)
               <asynchronous suspension>
               #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
               <asynchronous suspension>
               #6      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
               <asynchronous suspension>
               #7      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
               <asynchronous suspension>
               #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
               <asynchronous suspension>
               #9      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
               <asynchronous suspension>
               #10     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
               <asynchronous suspension>
               #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
               <asynchronous suspension>
               #12     main (package:flutter_tools/executable.dart:92:3)
               <asynchronous suspension>
               
               
    [ +377 ms] ensureAnalyticsSent: 260ms
    [  +10 ms] Running shutdown hooks
    [        ] Shutdown hooks complete
    [   +4 ms] exiting with code 1
    
    bug P1 
    opened by guidezpl 10
  • Overflow web view fix

    Overflow web view fix

    Hi,

    I fixed the problem of overflow on the web view. The related issue is https://github.com/flutter/gallery/issues/420 . Can you review my pull request?

    opened by gozeloglu 10
  • rename local functions with `_`s

    rename local functions with `_`s

    These will be flagged by the next linter release which updates non_constant_identifier_names to flag local functions.

    See also:

    • https://github.com/flutter/flutter/pull/102615
    • https://dart-review.googlesource.com/c/sdk/+/242391
    • dart-lang/linter#3360

    Pre-launch Checklist

    • [x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • [x] I read the Tree Hygiene wiki page, which explains my responsibilities.
    • [x] I read the Flutter Style Guide recently, and have followed its advice.
    • [x] I signed the CLA.
    • [x] I listed at least one issue that this PR fixes in the description above.
    • [x] I updated/added relevant documentation (doc comments with ///).
    • [x] I added new tests to check the change I am making, or this PR is test-exempt.
    • [x] All existing and new tests are passing.

    If you need help, consider asking for advice on the #hackers-new channel on Discord.

    opened by pq 9
  • website https://gallery.flutter.dev/ doesn't work

    website https://gallery.flutter.dev/ doesn't work

    Please inspect why the website https://gallery.flutter.dev/ doesn't work on my Mac Pro, MacPro4,1, Quad-Core Intel Xeon neither with Firefox nor with Safari. It aslo does not work on my iPhone6, OS 12.5.5.

    Please compare the issue at https://github.com/ferraridamiano/ConverterNOW/issues/171 which uses the same "technology".

    opened by milotype 8
  • a little problem when I tap the demo app

    a little problem when I tap the demo app

    First i starred an email ,then I go to my starred mail。when i try to swipe left the demo item,it crash. Console log is like that: ======== Exception caught by widgets library ======================================================= The following assertion was thrown building Dismissible-[InboxEmail#69e37](dirty, dependencies: [Directionality], state: _DismissibleState#42939(tickers: tracking 2 tickers)): A dismissed Dismissible widget is still part of the tree.

    Make sure to implement the onDismissed handler and to immediately remove the Dismissible widget from the application once that handler has fired.

    My flutter sdk is 2.10.0 , and dart sdk is 2.16.0

    bug P2 
    opened by breadfruit-tree 8
  • Change supported locales

    Change supported locales

    I'm changing this line according to the relevant documentation by this patch:

    
               return MaterialApp(
    
                 // ...
    
                 initialRoute: initialRoute,
    -            supportedLocales: GalleryLocalizations.supportedLocales,
    +            supportedLocales: [
    +              const Locale('en'),
    +              const Locale('he'),
    +            ],
                 locale: GalleryOptions.of(context).locale,
                 localeResolutionCallback: (locale, supportedLocales) {
                   deviceLocale = locale;
                   return locale;
                 },
    
    // ...
    
    

    But the locales options on settings page are not modified. Any idea why?


    I have a feeling like to change supported locales, I need to change l10n.yaml file. But I don't know what options are available. Can anybody help? Thanks!

    opened by Megidd 8
  • Update dependencies and platform directories

    Update dependencies and platform directories

    Description

    This updates the url_launcher to ^5.6.0 so that it includes Windows, and adds the missing platform directories for web, windows, and linux.

    Related Issues

    • Fixes https://github.com/flutter/flutter/issues/65862
    opened by gspencergoog 8
  • Use Synthetic Packages for localizations

    Use Synthetic Packages for localizations

    With synthetic package support in the gen_l10n tool (https://github.com/flutter/flutter/pull/62395), we no longer need to check in generated localizations .dart files into any Flutter project. Here is the laundry list of changes involved in the PR:

    1. This PR introduces an l10n.yaml file to set up localizations generation when flutter test, flutter pub get, flutter analyze are invoked. It also generates localizations on flutter run, hot reload and hot restart so that direct modifications to the arb files can be made and observed while in development.
    2. Removal of all generated .dart localizations files from source control, since it's no longer needed.
    3. Updated all imports to point to the synthetic package location.
    4. Slight update to the grind.dart tool that formats the generated code. I left the rest of the grind.dart command in there because it seems like we running flutter pub get in ${FLUTTER}/dev/tools is unfortunately still a necessity. My hope is to get rid of this requirement altogether, but I plan on doing this in a subsequent PR.
    5. Edit: Add flutter update-packages as a step in the CI temporarily since without it (issue filed https://github.com/flutter/flutter/issues/65023), flutter pub get does not work as expected since the gen_l10n tool's dependencies are not always in sync. This is particularly observed when switching between versions of flutter (ie. upgrading from stable to master branch, or vice versa)
    opened by shihaohong 8
  • Bump github/codeql-action from 2.1.31 to 2.1.32

    Bump github/codeql-action from 2.1.31 to 2.1.32

    Bumps github/codeql-action from 2.1.31 to 2.1.32.

    Changelog

    Sourced from github/codeql-action's changelog.

    CodeQL Action Changelog

    [UNRELEASED]

    No user facing changes.

    2.1.32 - 14 Nov 2022

    • Update default CodeQL bundle version to 2.11.3. #1348
    • Update the ML-powered additional query pack for JavaScript to version 0.4.0. #1351

    2.1.31 - 04 Nov 2022

    • The rb/weak-cryptographic-algorithm Ruby query has been updated to no longer report uses of hash functions such as MD5 and SHA1 even if they are known to be weak. These hash algorithms are used very often in non-sensitive contexts, making the query too imprecise in practice. For more information, see the corresponding change in the github/codeql repository. #1344

    2.1.30 - 02 Nov 2022

    • Improve the error message when using CodeQL bundle version 2.7.2 and earlier in a workflow that runs on a runner image such as ubuntu-22.04 that uses glibc version 2.34 and later. #1334

    2.1.29 - 26 Oct 2022

    • Update default CodeQL bundle version to 2.11.2. #1320

    2.1.28 - 18 Oct 2022

    • Update default CodeQL bundle version to 2.11.1. #1294
    • Replace uses of GitHub Actions command set-output because it is now deprecated. See more information in the GitHub Changelog. #1301

    2.1.27 - 06 Oct 2022

    • We are rolling out a feature of the CodeQL Action in October 2022 that changes the way that Go code is analyzed to be more consistent with other compiled languages like C/C++, C#, and Java. You do not need to alter your code scanning workflows. If you encounter any problems, please file an issue or open a private ticket with GitHub Support and request an escalation to engineering.

    2.1.26 - 29 Sep 2022

    • Update default CodeQL bundle version to 2.11.0. #1267

    2.1.25 - 21 Sep 2022

    • We will soon be rolling out a feature of the CodeQL Action that stores some information used to make future runs faster in the GitHub Actions cache. Initially, this will only be enabled on JavaScript repositories, but we plan to add more languages to this soon. The new feature can be disabled by passing the trap-caching: false option to your workflow's init step, for example if you are already using the GitHub Actions cache for a different purpose and are near the storage limit for it.
    • Add support for Python automatic dependency installation with Poetry 1.2 #1258.

    2.1.24 - 16 Sep 2022

    No user facing changes.

    2.1.23 - 14 Sep 2022

    • Allow CodeQL packs to be downloaded from GitHub Enterprise Server instances, using the new registries input for the init action. #1221
    • Update default CodeQL bundle version to 2.10.5. #1240

    ... (truncated)

    Commits
    • 4238421 Merge pull request #1360 from github/update-v2.1.32-33b10be6
    • 97be623 Update changelog for v2.1.32
    • 33b10be Merge pull request #1348 from github/henrymercer/use-codeql-2.11.3
    • 718930b Pin npm to latest v8 release to address failing PR check
    • 76a7740 Fix Python query identifier in file baseline information PR check
    • 9452b6b Merge branch 'main' into henrymercer/use-codeql-2.11.3
    • 006bb00 Merge pull request #1354 from github/edoardo/force-exit-on-timeout
    • d6f6ef4 Force exit of process if a timeout has occurred
    • 7c9e85e Merge pull request #1353 from kaeluka/add-ATM-0.4.0-to-changelog
    • fb3fdd7 add ATM 0.4.0 to changelog
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies github_actions 
    opened by dependabot[bot] 0
  • Crash when trying to load a deferred component

    Crash when trying to load a deferred component

    Build commands:

    # Commit Id: fecb94519dd7c08c5fc701a7111acd7035ce79cf
    git clone https://github.com/flutter/gallery
    flutter build appbundle -v
    wget https://github.com/google/bundletool/releases/download/1.13.0/bundletool-all-1.13.0.jar
    java -jar bundletool-all-1.13.0.jar build-apks --bundle=build/app/outputs/bundle/release/app-release.aab --output=build/app.apks --local-testing
    java -jar bundletool-all-1.13.0.jar install-apks --apks=build/app.apks
    

    Android Emulator: SDK 33 x86_64

    Expected behavior: Successfully load the Crane module

    Acutal behavior: Some assets were missing (see screenshot). App crashed after tapping Crane (see logcat).

    flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel beta, 3.4.0-34.1.pre, on Debian GNU/Linux rodete 5.18.16-1rodete4-amd64, locale en_US.UTF-8)
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc2)
    [✓] Chrome - develop for the web
    [✓] Linux toolchain - develop for Linux desktop
    [✓] Android Studio (version 3.6)
    [✓] Android Studio (version 4.1)
    [✓] Android Studio (version 2021.3)
    [✓] Android Studio (version 2021.2)
    [✓] Android Studio (version 2021.1)
    [!] Android Studio (version 2022.1)
        ✗ Unable to find bundled Java version.
    [✓] Android Studio (version 2020.3)
    [✓] Android Studio (version 4.2)
    [✓] Connected device (3 available)
    [✓] HTTP Host Availability
    

    ! Doctor found issues in 1 category.

    Screenshots Screenshot 2022-11-11 at 04 29 32 Screenshot 2022-11-11 at 04 29 37
    adb logcat
    11-10 13:30:03.136  6378  6378 I FakeSplitInstallManager: availableSplits [, config.kk, config.km, config.kn, config.or, config.sv, config.ca, config.sq, config.sr, config.sk, config.sl, config.ka, config.si, config.cs, config.pa, config.te, config.ta, config.gu, config.ky, config.ko, config.sw, config.gl, config.de, config.hi, crane, config.lo, config.pl, config.da, config.tr, crane.config.x86_64, config.tl, config.th, config.hy, config.hu, config.lt, config.hr, config.lv, crane.config.hdpi, config.pt, config.mn, config.ur, config.mk, config.ml, config.uk, config.eu, config.ar, config.as, config.vi, config.am, config.my, config.es, config.iw, config.zh, config.et, config.en, config.is, config.it, config.af, config.in, config.mr, config.uz, config.ms, config.el, config.be, config.fi, config.ru, config.x86_64, config.ro, config.nl, config.az, config.fa, config.zu, config.nb, config.ja, config.ne, config.bs, config.hdpi, config.bn, config.fr, config.bg] want [crane]
    11-10 13:30:03.359  6378  6404 D EGL_emulation: app_time_stats: avg=25.70ms min=11.28ms max=444.12ms count=47
    11-10 13:30:04.366  6378  6404 D EGL_emulation: app_time_stats: avg=6.41ms min=4.10ms max=8.92ms count=61
    11-10 13:30:05.367  6378  6404 D EGL_emulation: app_time_stats: avg=6.42ms min=4.32ms max=9.78ms count=60
    11-10 13:30:06.138  6378  6397 D SplitCompat: NativeLibraryExtractor: synchronizing native libraries
    11-10 13:30:06.139  6378  6397 D SplitCompat: NativeLibraryExtractor: split 'crane.config.x86_64' has native library 'libapp.so-77.part.so' for ABI 'x86_64'
    11-10 13:30:06.139  6378  6397 D SplitCompat: NativeLibraryExtractor: there are native libraries for supported ABI x86_64; will use this ABI
    11-10 13:30:06.140  6378  6397 D SplitCompat: NativeLibraryExtractor: using library libapp.so-77.part.so for ABI x86_64
    11-10 13:30:06.140  6378  6397 D SplitCompat: NativeLibraryExtractor: there are no native libraries for supported ABI x86_64
    11-10 13:30:06.142  6378  6397 D SplitCompat: NativeLibraryExtractor: there are no native libraries for supported ABI x86_64
    11-10 13:30:06.144  6378  6397 D SplitCompat: addAssetPath completed with 14
    11-10 13:30:06.144  6378  6397 D SplitCompat: addAssetPath completed with 15
    11-10 13:30:06.144  6378  6397 D SplitCompat: addAssetPath completed with 16
    11-10 13:30:06.144  6378  6397 D SplitCompat: Split 'crane.config.x86_64' installation emulated
    11-10 13:30:06.144  6378  6397 D SplitCompat: Split 'crane' installation emulated
    11-10 13:30:06.144  6378  6397 D SplitCompat: Split 'crane.config.hdpi' installation emulated
    11-10 13:30:06.144  6378  6397 I SplitCompat: Splits installed.
    11-10 13:30:06.205  6378  6403 E Dart    : ../../third_party/dart/runtime/vm/runtime_entry.cc: 3644: error: Not loaded
    11-10 13:30:06.205  6378  6403 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6403 (1.ui), pid 6378 (er.demo.gallery)
    11-10 13:30:06.247  6423  6423 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
    11-10 13:30:06.248   285   285 I tombstoned: received crash request for pid 6403
    11-10 13:30:06.249  6423  6423 I crash_dump64: performing dump of process 6378 (target tid = 6403)
    11-10 13:30:06.518     0     0 W audit   : audit_lost=2258 audit_rate_limit=5 audit_backlog_limit=64
    11-10 13:30:06.519     0     0 E audit   : rate limit exceeded
    11-10 13:30:06.541     0     0 I logd    : logdr: UID=10166 GID=10166 PID=6423 n tail=0 logMask=8 pid=6378 start=0ns deadline=0ns
    11-10 13:30:06.545     0     0 I logd    : logdr: UID=10166 GID=10166 PID=6423 n tail=0 logMask=1 pid=6378 start=0ns deadline=0ns
    11-10 13:30:06.421  6423  6423 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    11-10 13:30:06.421  6423  6423 F DEBUG   : Build fingerprint: 'google/sdk_goog3_x86_64/emulator64_x86_64:13/TE1A.220922.008/9198977:userdebug/dev-keys'
    11-10 13:30:06.421  6423  6423 F DEBUG   : Revision: '0'
    11-10 13:30:06.421  6423  6423 F DEBUG   : ABI: 'x86_64'
    11-10 13:30:06.421  6423  6423 F DEBUG   : Timestamp: 2022-11-10 13:30:06.259611733-0800
    11-10 13:30:06.421  6423  6423 F DEBUG   : Process uptime: 10s
    11-10 13:30:06.421  6423  6423 F DEBUG   : Cmdline: io.flutter.demo.gallery
    11-10 13:30:06.421  6423  6423 F DEBUG   : pid: 6378, tid: 6403, name: 1.ui  >>> io.flutter.demo.gallery <<<
    11-10 13:30:06.421  6423  6423 F DEBUG   : uid: 10166
    11-10 13:30:06.421  6423  6423 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
    11-10 13:30:06.421  6423  6423 F DEBUG   : Abort message: '../../third_party/dart/runtime/vm/runtime_entry.cc: 3644: error: Not loaded'
    11-10 13:30:06.421  6423  6423 F DEBUG   :     rax 0000000000000000  rbx 00000000000018ea  rcx 000077601e14d6ff  rdx 0000000000000006
    11-10 13:30:06.421  6423  6423 F DEBUG   :     r8  0000000000000000  r9  0000000000000000  r10 0000775d63a4f5a0  r11 0000000000000203
    11-10 13:30:06.421  6423  6423 F DEBUG   :     r12 0000775c00015e41  r13 0000775c0207c400  r14 0000775d63a4f598  r15 0000000000001903
    11-10 13:30:06.421  6423  6423 F DEBUG   :     rdi 00000000000018ea  rsi 0000000000001903
    11-10 13:30:06.421  6423  6423 F DEBUG   :     rbp 0000775d63a4fc98  rsp 0000775d63a4f590  rip 000077601e14d6ff
    11-10 13:30:06.421  6423  6423 F DEBUG   : backtrace:
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #00 pc 000000000005f6ff  /apex/com.android.runtime/lib64/bionic/libc.so (abort+191) (BuildId: 007cb2313464df63debf8020e631c990)
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #01 pc 00000000007a5e26  /data/app/~~i_bIj760dFycRI8jKoYk0Q==/io.flutter.demo.gallery-gi4R-i3VzUTQ2esWgVzP-g==/split_config.x86_64.apk!libflutter.so (BuildId: 199716b1bf2c94ab9e0f37373b8ac883c8bed635)
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #02 pc 000000000088a2d5  /data/app/~~i_bIj760dFycRI8jKoYk0Q==/io.flutter.demo.gallery-gi4R-i3VzUTQ2esWgVzP-g==/split_config.x86_64.apk!libflutter.so (BuildId: 199716b1bf2c94ab9e0f37373b8ac883c8bed635)
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #03 pc 00000000005aebfd  /data/app/~~i_bIj760dFycRI8jKoYk0Q==/io.flutter.demo.gallery-gi4R-i3VzUTQ2esWgVzP-g==/split_config.x86_64.apk (BuildId: c29a1f0c88da8b4648979a1af269dcaa)
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #04 pc 00000000005adadc  /data/app/~~i_bIj760dFycRI8jKoYk0Q==/io.flutter.demo.gallery-gi4R-i3VzUTQ2esWgVzP-g==/split_config.x86_64.apk (BuildId: c29a1f0c88da8b4648979a1af269dcaa)
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #05 pc 0000000000004203  /data/data/io.flutter.demo.gallery/files/splitcompat/21000/native-libraries/crane.config.x86_64/libapp.so-77.part.so
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #06 pc 0000000000759a68  /data/app/~~i_bIj760dFycRI8jKoYk0Q==/io.flutter.demo.gallery-gi4R-i3VzUTQ2esWgVzP-g==/split_config.x86_64.apk (BuildId: c29a1f0c88da8b4648979a1af269dcaa)
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #07 pc 0000000000759951  /data/app/~~i_bIj760dFycRI8jKoYk0Q==/io.flutter.demo.gallery-gi4R-i3VzUTQ2esWgVzP-g==/split_config.x86_64.apk (BuildId: c29a1f0c88da8b4648979a1af269dcaa)
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #08 pc 000000000073a6c8  /data/app/~~i_bIj760dFycRI8jKoYk0Q==/io.flutter.demo.gallery-gi4R-i3VzUTQ2esWgVzP-g==/split_config.x86_64.apk (BuildId: c29a1f0c88da8b4648979a1af269dcaa)
    11-10 13:30:06.421  6423  6423 F DEBUG   :       #09 pc 000000000073a3e5  /data/app/~~i_bIj760dFycRI8jKoYk0Q==/io.flutter.demo.gallery-gi4R-i3VzUTQ2esWgVzP-g==/split_config.x86_64.apk (BuildId: c29a1f0c88da8b4648979a1af269dcaa)
    11-10 13:30:06.422  6423  6423 F DEBUG   :       #10 pc 0000000000735952  /data/app/~~i_bIj760dFycRI8jKoYk0Q==/io.flutter.demo.gallery-gi4R-i3VzUTQ2esWgVzP-g==/split_config.x86_64.apk (BuildId: c29a1f0c88da8b4648979a1af269dcaa)
    
    opened by wytesk133 0
  • Align disables NavigationRail leading widget onTap events when not expanded ref: Gallery Reply Study

    Align disables NavigationRail leading widget onTap events when not expanded ref: Gallery Reply Study

    In the Reply study, the NavigationRail 'expand' click is not received by the widget. Removing Align from the _NavigationRailHeader resolves the problem.

    Steps to reproduce:

    1. Flutter 3.3.4 • channel stable • https://github.com/flutter/flutter.git Framework • revision eb6d86ee27 (5 days ago) • 2022-10-04 22:31:45 -0700 Engine • revision c08d7d5efc Tools • Dart 2.18.2 • DevTools 2.15.0

    2. Open the Flutter Gallery Reply Study (macOS)

    3. Click on the Reply logo The Navigation Rail is collapsed.

    4. Click on the Reply logo Expected: Navigation Rail is expanded. Actual: Click is not received by the widget as onTap event or animations.

    5. Remove Align from the _NavigationRailHeader from adaptive_nav.dart https://github.com/flutter/gallery/blob/2ce31ad8ffbb499667e4d9626129d48e8f30062d/lib/studies/reply/adaptive_nav.dart#L272

    6. Repeat from step 3) Actual: Click is received and expanded

    This may be a problem with the Reply study or possibly with the NavigationRail leading 'not expanded' code.

    bug 
    opened by ChadSmith2020 0
  • flutter on chrome browser cause error  with infinite loading splash image.

    flutter on chrome browser cause error with infinite loading splash image.

    How can I run sample app?

    at first, I download sample app then I command "flutter run" and it cause that I should upgrade flutter. even I use 3.0.5 so, I upgrade to master channel then it run with success

    but it cause new error

    
    Launching lib/main.dart on Chrome in debug mode...
    Waiting for connection from debug service on Chrome...                   31.1s
    ERROR - 2022-08-28 16:53:05.901453
    GET /dwds/src/injected/client.js
    Error thrown by handler.
    FileSystemException: Cannot open file, path = '/Users/pedrojung/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/dwds-15.0.0/lib/src/injected/client.js' (OS Error: No such file or directory, errno = 2)
    package:shelf/shelf_io.dart 115:16  handleRequest
    

    스크린샷 2022-08-28 오후 4 56 20

    
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel master, 3.1.0-0.0.pre.2543, on macOS 13.0
        22A5295h darwin-arm, locale ko-KR)
    [!] Android toolchain - develop for Android devices (Android SDK
        version 30.0.3)
        ✗ cmdline-tools component is missing
          Run `path/to/sdkmanager --install "cmdline-tools;latest"`
          See https://developer.android.com/studio/command-line for more
          details.
        ✗ Android license status unknown.
          Run `flutter doctor --android-licenses` to accept the SDK
          licenses.
          See
          https://flutter.dev/docs/get-started/install/macos#android-setup
          for more details.
    [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 2021.2)
    [✓] Android Studio (version 2020.3)
    [✓] IntelliJ IDEA Ultimate Edition (version 2022.1.3)
    [✓] VS Code (version 1.69.2)
    [✓] VS Code (version 1.66.2)
    [✓] Connected device (2 available)
    [✓] HTTP Host Availability
    
    opened by kotran88 1
  • Unblock GitHub automation

    Unblock GitHub automation

    The GitHub action workflows which used to for example, deploy the app to Firebase, are no longer functional.

    The legacy database secret (e.g. https://github.com/flutter/gallery/blob/main/.github/workflows/release_deploy_web.yml#L44) needs to be replaced with a Firebase service account.

    P1 
    opened by guidezpl 1
Releases(v2.9.2)
An app showcasing Flutter components, with side-by-side source code view.

Flutter Catalog An app showcasing Flutter components, with side-by-side source code view. ?? ?? New: Flutter Catalog is now available in the browser!

xwei 1.8k Dec 1, 2022
Generative d.Art with Flutter

Generative d.Art Demonstrate how to generate your very own #d_Art using Flutter. As a technical point we are NOT relying on Widget but RenderBox direc

Robert Felker 446 Nov 29, 2022
A dart package to help you parse and evaluate infix mathematical expressions into their prefix and postfix notations.

A dart package to help you parse and evaluate infix mathematical expressions into their prefix and postfix notations.

Miguel Manjarres 2 Jan 28, 2022
A mobile image uploader in which you can upload image to your personal gallery from either your camera or mobile gallery and it can detect your current geographic location and address using firebase firestore and storage.

Image Uploader In Flutter About It is an Image Uploader gallery which tracks your address from which you're uploading using Flutter and Image picker.

Prahen parija 7 Nov 27, 2022
Resource monitor - A flutter plugin for Android and IOS to monitor CPU and RAM usage of device.

resource_monitor A flutter plugin for Android and IOS to monitor CPU and RAM usage of device. TODO Return overall system cpu/memory usage. Implement A

Skandar Munir 1 Nov 11, 2022
Imports resource files as string or binary literals in Dart code.

resource_importer Imports resource files as string or binary literals in Dart code. What? resource_importer probably is best described with an example

James D. Lin 1 May 21, 2022
A pure Dart package for working with RDF (resource description framework).

RDFLib A pure Dart package for working with RDF (resource description framework). Features Create triple instances (with data types) Create a graph to

null 6 Nov 30, 2022
DEVS: Developer Board and Jobs Listing | For Developers, By Developers

devs Setup Currently, this DEVS project is using the master channel of the Flutter SDK. TODO: Migrate to beta Clone the project git clone https://gith

Flutter Philippines Community 40 Apr 16, 2022
A TabBarController that is easy to use for flutter developers. 🥰 It supports various styles of page navigation, and you can also use it to customize your favorite styles. 🍻🍻

easy_tab_controller A user-friendly TabBarController widget for flutter developer. Getting Started This project is a starting point for a Flutter plug

圆号本昊 3 May 26, 2022
Loading indicator GIFs. Material and Cupertino (Android and iOS) loading indicators in assorted sizes. Use as placeholders for loading remote image assets. Demo: https://gallery.codelessly.com/flutterwebsites/loadinggifs/

Loading GIFs High quality Android and iOS loading spinners. View Demo Loading GIFs is a collection of high fidelity loading animations in GIF format.

Codelessly 30 Oct 25, 2022
A super powerful widget to help developers build complex views quickly and comfortably.

FSuper FSuper can help developers build complex views quickly and comfortably. It supports rich text, rounded corners, borders, pictures, small red do

Fliggy Mobile 481 Nov 22, 2022
A super powerful widget to help developers build complex views quickly and comfortably.

FSuper FSuper can help developers build complex views quickly and comfortably. It supports rich text, rounded corners, borders, pictures, small red do

Fliggy Mobile 481 Nov 22, 2022
story_designer is created to help developers out there who are looking for implementing Instagram like stories editor.

story_designer A package for creating instagram like story, you can use this package to edit images and make it story ready by adding other contents o

Gulshan Yadav 19 Nov 2, 2022
Help developers build the most beautiful search bar🍹.

fsearch Help developers build the most beautiful search bar ?? . [FSearch] provides developers with a one-stop search bar construction service. Suppor

Fliggy Mobile 70 Oct 28, 2022
An app to pick, upload and display images from camera and gallery with size and extension constraints.

image_uploader A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started i

Ehmad Saeed⚡ 4 Mar 7, 2022
DoneIt is a sample note app 📝 Flutter application 📱 built to demonstrate use of Clean Architecture tools. Dedicated to all Flutter Developers with ❤️.

DoneIt ?? DoneIt is a sample note app ?? Flutter application ?? built to demonstrate use of Clean Architecture tools. Dedicated to all Flutter Develop

Shubham Chhimpa 175 Nov 15, 2022
A starter helper for flutter developers wanting to use firebase phone authentication in their app.

riverpod_firebase_phone_auth A new Flutter project template showing how to handle mobile authentication using Firebase and Riverpod. Packages Used Fre

Douglas Bett 8 Oct 31, 2022
Some built-in live templates support developers to use Flutter Riverpod faster on Intellij based

Flutter Riverpod live templates Flutter Riverpod live templates is a way to enhance the way you use Riverpod. It contains a collection of different sn

Minh Tran 25 Aug 17, 2022
End-to-end mobile app templates that other developers can use during their Flutter development journey.

Flutter UI Templates Welcome Contributors ?? The Robotics Forum always encourages new ideas. Aim ?? Main aim of this repository is to make things fast

The Robotics Forum, VIT Pune 7 Nov 2, 2022
Flutter plugin that saves images and videos to devices gallery

Gallery Saver for Flutter Saves images and videos from network or temporary file to external storage. Both images and videos will be visible in Androi

Carnegie Technologies 131 Nov 25, 2022