An app showcasing Flutter components, with side-by-side source code view.

Overview

Flutter Catalog

Get it on Google Play Get it on AppStore Awesome Flutter

An app showcasing Flutter components, with side-by-side source code view.

πŸš€ πŸš€ New: Flutter Catalog is now available in the browser! Check it out here. And note there are some limitations to the web variant.

Screenshots

How to contribute by adding a new example page

  1. Create a dart file under lib/route/ (or just duplicate a file, e.g. cp widgets_icon_ex.dart new_example.dart);
  2. In the new file, create a class that extends MyRoute;
  3. Add constructor, the convention is to use the file path as constructor's default parameter;
  4. (Optional) override getters: title, description, links;
  5. Override buildMyRouteContent(), try to make the code simple, as it'll be shown on phone screens;
  6. Open lib/my_app_meta.dart, import the new file at the beginning of file;
  7. In kMyAppRoutesStructure, add an instantiation of the new class under the appropriate item group.

Credits

This app is written with reference to many resources, including:

Comments
  • does not compile with latest flutter release

    does not compile with latest flutter release

    I get a following compiler error when just cloning and building this project:

    C:\Projects\flutter_catalog>flutter doctor -v [√] Flutter (Channel master, v1.1.6-pre.34, on Microsoft Windows [Version 10.0.17134.472], locale en-US) β€’ Flutter version 1.1.6-pre.34 at c:\sdks\flutter β€’ Framework revision d06e4325d8 (3 hours ago), 2019-01-06 07:20:36 +0800 β€’ Engine revision 716185fb79 β€’ Dart version 2.1.1 (build 2.1.1-dev.0.1 ec86471ccc)

    [√] Android toolchain - develop for Android devices (Android SDK version 28.0.3) β€’ Android SDK at C:\Users\ride4\AppData\Local\Android\sdk β€’ Android NDK location not configured (optional; useful for native profiling support) β€’ Platform android-28, build-tools 28.0.3 β€’ Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java β€’ Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) β€’ All Android licenses accepted.

    [√] Android Studio (version 3.2) β€’ Android Studio at C:\Program Files\Android\Android Studio β€’ Flutter plugin version 31.3.1 β€’ Dart plugin version 181.5656 β€’ Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

    [√] IntelliJ IDEA Community Edition (version 2017.3) β€’ IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.5 β€’ Flutter plugin version 22.2.2 β€’ Dart plugin version 173.4700

    [√] VS Code, 32-bit edition (version 1.30.1) β€’ VS Code at C:\Program Files (x86)\Microsoft VS Code β€’ Flutter extension version 2.21.1

    [√] Connected device (1 available) β€’ moto g 6 β€’ ZY322W3HK7 β€’ android-arm β€’ Android 8.0.0 (API 26)

    β€’ No issues found!

    18:14:50.944 1 info flutter.tools [ +33 ms] executing: [C:\sdks\flutter] git rev-parse --abbrev-ref --symbolic @{u} 18:14:50.993 2 info flutter.tools [ +63 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} 18:14:50.993 3 info flutter.tools [ ] origin/master 18:14:50.993 4 info flutter.tools [ ] executing: [C:\sdks\flutter] git rev-parse --abbrev-ref HEAD 18:14:51.031 5 info flutter.tools [ +37 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD 18:14:51.031 6 info flutter.tools [ ] master 18:14:51.031 7 info flutter.tools [ ] executing: [C:\sdks\flutter] git ls-remote --get-url origin 18:14:51.069 8 info flutter.tools [ +36 ms] Exit code 0 from: git ls-remote --get-url origin 18:14:51.069 9 info flutter.tools [ ] https://github.com/flutter/flutter 18:14:51.069 10 info flutter.tools [ ] executing: [C:\sdks\flutter] git log -n 1 --pretty=format:%H 18:14:51.107 11 info flutter.tools [ +37 ms] Exit code 0 from: git log -n 1 --pretty=format:%H 18:14:51.107 12 info flutter.tools [ ] d06e4325d87e9d82a7221a73dcb9bcb03c087c81 18:14:51.107 13 info flutter.tools [ ] executing: [C:\sdks\flutter] git log -n 1 --pretty=format:%ar 18:14:51.145 14 info flutter.tools [ +37 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar 18:14:51.145 15 info flutter.tools [ ] 3 hours ago 18:14:51.145 16 info flutter.tools [ ] executing: [C:\sdks\flutter] git describe --match v*.. --first-parent --long --tags 18:14:51.201 17 info flutter.tools [ +52 ms] Exit code 0 from: git describe --match v*.. --first-parent --long --tags 18:14:51.201 18 info flutter.tools [ ] v1.1.5-34-gd06e4325d 18:14:51.323 19 info flutter.tools [ +121 ms] executing: C:\Users\ride4\AppData\Local\Android\sdk\platform-tools\adb devices -l 18:14:51.348 20 info flutter.tools [ +23 ms] Exit code 0 from: C:\Users\ride4\AppData\Local\Android\sdk\platform-tools\adb devices -l 18:14:51.348 21 info flutter.tools [ ] List of devices attached 18:14:51.348 22 info flutter.tools ZY322W3HK7 device product:ali_amz model:moto_g_6_ device:ali transport_id:1 18:14:51.474 23 info flutter.tools [ +130 ms] Found plugin cloud_firestore at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.8.2+3
    18:14:51.487 24 info flutter.tools [ +7 ms] Found plugin firebase_analytics at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-1.1.0
    18:14:51.487 25 info flutter.tools [ +2 ms] Found plugin firebase_auth at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_auth-0.6.6
    18:14:51.487 26 info flutter.tools [ +1 ms] Found plugin firebase_core at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_core-0.2.5+1
    18:14:51.489 27 info flutter.tools [ +2 ms] Found plugin firebase_database at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_database-1.0.5
    18:14:51.497 28 info flutter.tools [ +3 ms] Found plugin firebase_ml_vision at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_ml_vision-0.2.0+2
    18:14:51.497 29 info flutter.tools [ +3 ms] Found plugin firebase_storage at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_storage-1.0.4
    18:14:51.505 30 info flutter.tools [ +10 ms] Found plugin flutter_webview_plugin at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.0+2
    18:14:51.507 31 info flutter.tools [ +2 ms] Found plugin fluttertoast at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\fluttertoast-2.2.3
    18:14:51.509 32 info flutter.tools [ +1 ms] Found plugin google_sign_in at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_sign_in-3.2.4
    18:14:51.517 33 info flutter.tools [ +3 ms] Found plugin image_picker at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.10
    18:14:51.519 34 info flutter.tools [ +6 ms] Found plugin path_provider at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-0.4.1
    18:14:51.527 35 info flutter.tools [ +4 ms] Found plugin shared_preferences at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.4.3
    18:14:51.540 36 info flutter.tools [ +15 ms] Found plugin url_launcher at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-3.0.3
    18:14:51.578 37 info flutter.tools [ +36 ms] Found plugin cloud_firestore at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\cloud_firestore-0.8.2+3
    18:14:51.580 38 info flutter.tools [ +3 ms] Found plugin firebase_analytics at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_analytics-1.1.0
    18:14:51.582 39 info flutter.tools [ +1 ms] Found plugin firebase_auth at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_auth-0.6.6
    18:14:51.584 40 info flutter.tools [ +1 ms] Found plugin firebase_core at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_core-0.2.5+1
    18:14:51.586 41 info flutter.tools [ +1 ms] Found plugin firebase_database at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_database-1.0.5
    18:14:51.588 42 info flutter.tools [ +2 ms] Found plugin firebase_ml_vision at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_ml_vision-0.2.0+2
    18:14:51.590 43 info flutter.tools [ +1 ms] Found plugin firebase_storage at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_storage-1.0.4
    18:14:51.597 44 info flutter.tools [ +5 ms] Found plugin flutter_webview_plugin at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.0+2
    18:14:51.597 45 info flutter.tools [ +1 ms] Found plugin fluttertoast at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\fluttertoast-2.2.3
    18:14:51.597 46 info flutter.tools [ +1 ms] Found plugin google_sign_in at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\google_sign_in-3.2.4
    18:14:51.599 47 info flutter.tools [ +1 ms] Found plugin image_picker at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.10
    18:14:51.607 48 info flutter.tools [ +3 ms] Found plugin path_provider at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\path_provider-0.4.1
    18:14:51.607 49 info flutter.tools [ +2 ms] Found plugin shared_preferences at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\shared_preferences-0.4.3
    18:14:51.621 50 info flutter.tools [ +14 ms] Found plugin url_launcher at C:\Users\ride4\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\url_launcher-3.0.3
    18:14:51.665 51 info flutter.tools [ +45 ms] C:\Users\ride4\AppData\Local\Android\sdk\platform-tools\adb -s ZY322W3HK7 shell getprop 18:14:51.784 52 info flutter.tools [ +114 ms] ro.hardware = qcom 18:14:52.456 53 info flutter.tools [ +674 ms] Launching lib\main.dart on moto g 6 in debug mode... 18:14:52.470 54 info flutter.tools Initializing gradle... 18:14:52.470 55 info flutter.tools [ +18 ms] Using gradle from C:\Projects\flutter_catalog\android\gradlew.bat. 18:14:52.747 56 info flutter.tools [ +273 ms] executing: C:\Projects\flutter_catalog\android\gradlew.bat -v 18:14:53.419 57 info flutter.tools [ +670 ms] 18:14:53.419 58 info flutter.tools ------------------------------------------------------------ 18:14:53.419 59 info flutter.tools Gradle 4.1 18:14:53.419 60 info flutter.tools ------------------------------------------------------------ 18:14:53.419 61 info flutter.tools 18:14:53.419 62 info flutter.tools Build time: 2017-08-07 14:38:48 UTC 18:14:53.419 63 info flutter.tools Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2 18:14:53.419 64 info flutter.tools 18:14:53.419 65 info flutter.tools Groovy: 2.4.11 18:14:53.419 66 info flutter.tools Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 18:14:53.419 67 info flutter.tools JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b06) 18:14:53.419 68 info flutter.tools OS: Windows 10 10.0 amd64 18:14:53.419 69 info flutter.tools Resolving dependencies... 18:14:53.419 70 info flutter.tools [ +1 ms] executing: [C:\Projects\flutter_catalog\android] C:\Projects\flutter_catalog\android\gradlew.bat app:properties 18:14:54.845 71 info flutter.tools [+1423 ms] 18:14:54.845 72 info flutter.tools FAILURE: Build failed with an exception. 18:14:54.845 73 info flutter.tools 18:14:54.845 74 info flutter.tools * Where: 18:14:54.845 75 info flutter.tools Build file 'C:\Projects\flutter_catalog\android\app\build.gradle' line: 61 18:14:54.845 76 info flutter.tools 18:14:54.845 77 info flutter.tools * What went wrong: 18:14:54.845 78 info flutter.tools A problem occurred evaluating project ':app'. 18:14:54.845 79 info flutter.tools > path may not be null or empty string. path='null' 18:14:54.845 80 info flutter.tools 18:14:54.845 81 info flutter.tools * Try: 18:14:54.845 82 info flutter.tools Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 18:14:54.845 83 info flutter.tools 18:14:54.845 84 info flutter.tools * Get more help at https://help.gradle.org 18:14:54.845 85 info flutter.tools 18:14:54.845 86 info flutter.tools BUILD FAILED in 1s 18:14:54.850 87 info flutter.tools [ +5 ms] * Error running Gradle: 18:14:54.850 88 info flutter.tools ProcessException: Process "C:\Projects\flutter_catalog\android\gradlew.bat" exited abnormally: 18:14:54.850 89 info flutter.tools 18:14:54.850 90 info flutter.tools FAILURE: Build failed with an exception. 18:14:54.850 91 info flutter.tools 18:14:54.850 92 info flutter.tools * Where: 18:14:54.850 93 info flutter.tools Build file 'C:\Projects\flutter_catalog\android\app\build.gradle' line: 61 18:14:54.850 94 info flutter.tools 18:14:54.850 95 info flutter.tools * What went wrong: 18:14:54.850 96 info flutter.tools A problem occurred evaluating project ':app'. 18:14:54.850 97 info flutter.tools > path may not be null or empty string. path='null' 18:14:54.850 98 info flutter.tools 18:14:54.850 99 info flutter.tools * Try: 18:14:54.850 100 info flutter.tools Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 18:14:54.850 101 info flutter.tools 18:14:54.850 102 info flutter.tools * Get more help at https://help.gradle.org 18:14:54.850 103 info flutter.tools 18:14:54.850 104 info flutter.tools BUILD FAILED in 1s 18:14:54.850 105 info flutter.tools Command: C:\Projects\flutter_catalog\android\gradlew.bat app:properties 18:14:54.850 106 info flutter.tools

    opened by ride4sun 5
  • Please commit 'GoogleService-Info.plist'

    Please commit 'GoogleService-Info.plist'

    Meeting this issue when try to run on iOS simulator. Please download 'GoogleService-Info.plist' from firebase console and commit it.

    Chandlers-Plexure-Mac:flutter_catalog chandlercheng$ flutter run
     
    Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
    Running Xcode build...                                                  
                                                       
     β”œβ”€Assembling Flutter resources...                           3.9s
     └─Compiling, linking and signing...                         7.1s
    Xcode build done.                                           20.4s
    	path: satisfied (Path is satisfied), interface: en0
    Configuring the default Firebase app...
    6.22.0 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.
    6.22.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
    *** First throw call stack:
    (
    	0   CoreFoundation                      0x00007fff23e3dcce __exceptionPreprocess + 350
    	1   libobjc.A.dylib                     0x00007fff50b3b9b2 objc_exception_throw + 48
    	2   CoreFoundation                      0x00007fff23e3db0c +[NSException raise:format:] + 188
    	3   Runner                              0x000000010ba0b852 +[FIRApp configure] + 130
    	4   Runner                              0x000000010c140249 -[FLTCloudFirestorePlugin init] + 217
    	5   Runner                              0x000000010c140056 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 262
    	6   Runner                              0x000000010b82f776 +[GeneratedPluginRegistrant registerWithRegistry:] + 118
    	7   Runner                        <…>
    This is taking longer than expected...
    
    
    
    
    
    opened by MilkBiscuit 3
  • Android X crash

    Android X crash

    Launching lib/main.dart on SM N960F in debug mode... Initializing gradle... Resolving dependencies... Running Gradle task 'assembleDebug'... registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) /Users/amber052829/.gradle/caches/transforms-1/files-1.1/appcompat-1.0.0.aar/9dc6bf8858af1423a011fd4dc5c70991/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.

    /Users/amber052829/Downloads/flutter_catalog-master/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.

    /Users/amber052829/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/a9b2e378eea0f38d8a58eccbcf91c64a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.

    /Users/amber052829/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/a9b2e378eea0f38d8a58eccbcf91c64a/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/ttcIndex not found.

    /Users/amber052829/Downloads/flutter_catalog-master/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. /Users/amber052829/Downloads/flutter_catalog-master/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. /Users/amber052829/Downloads/flutter_catalog-master/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:244: error: resource android:attr/fontVariationSettings not found. /Users/amber052829/Downloads/flutter_catalog-master/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:244: error: resource android:attr/ttcIndex not found. error: failed linking references.

    Failed to execute aapt com.android.ide.common.process.ProcessException: Failed to execute aapt at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796) at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551) at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285) at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109) at sun.reflect.GeneratedMethodAccessor416.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63) at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625) at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:482) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:794) ... 47 more Caused by: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:503) at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:462) at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79) at com.android.builder.internal.aapt.v2.QueueableAapt2.lambda$makeValidatedPackage$1(QueueableAapt2.java:179) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ... 1 more Caused by: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details at com.android.builder.png.AaptProcess$NotifierProcessOutput.handleOutput(AaptProcess.java:463) at com.android.builder.png.AaptProcess$NotifierProcessOutput.err(AaptProcess.java:415) at com.android.builder.png.AaptProcess$ProcessOutputFacade.err(AaptProcess.java:332) at com.android.utils.GrabProcessOutput$1.run(GrabProcessOutput.java:104)

    FAILURE: Build failed with an exception.

    • What went wrong: Execution failed for task ':app:processDebugResources'.

    Failed to execute aapt

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    • Get more help at https://help.gradle.org

    BUILD FAILED in 4s


    The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.


    Finished with error: Gradle task assembleDebug failed with exit code 1

    Given methods online don't seem to be working.

    opened by Amber052829 3
  • Build Fails! Help please.

    Build Fails! Help please.

    Launching lib/main.dart on SM N960F in debug mode... Initializing gradle... Resolving dependencies...

    • Error running Gradle: ProcessException: Process "/Users/amber052829/Downloads/flutter_catalog-master/android/gradlew" exited abnormally: FAILURE: Build failed with an exception.

    • Where: Build file '/Users/amber052829/Downloads/flutter_catalog-master/android/app/build.gradle' line: 61

    • What went wrong: A problem occurred evaluating project ':app'.

    path may not be null or empty string. path='null'

    • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    • Get more help at https://help.gradle.org

    BUILD FAILED in 0s Command: /Users/amber052829/Downloads/flutter_catalog-master/android/gradlew app:properties

    opened by Amber052829 3
  • App crashing on clicking 'go home' button

    App crashing on clicking 'go home' button

    In Navigation/routes section , their is a go home button in the last page(need to navigate to last page ) ,on clicking the Screenshot_20201127-182206 app crashes and black screen appear.

    opened by kamlesh1687 2
  • Build failed by Flutter v1.0.0

    Build failed by Flutter v1.0.0

    error message:

    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':app:preDebugBuild'.
    > Android dependency 'com.android.support:support-fragment' has different version for the compile (26.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 6s
    
    opened by jonahfang 2
  • Error on Local file read/write component

    Error on Local file read/write component

    In the Local file read/write component which is inside Persistence, when the user hasn't input some text and saved it but clicks on Load, an error text is shown (the following image illustrates that):

    1

    Proposed Solution: When the user hasn't saved some text, you could show a dialog indicating the user, that he must save something first in order to load the saved text.

    opened by linaCardozo 1
  • Master raheem

    Master raheem

    Fix the "Basics -> Widgets -> TextField shows incorrect count of words #125"

    The second Multiline input field counts words incorrectly:

    it always shows 1 even there is no words it doesn't count the word when you get down to new line (like pressing enter) also placeholder text or hint is displayed in the middle of the TextInput, it would be nice if its gravity set to start and top.

    opened by raheemadamboev 1
  • move flutter official gallery link

    move flutter official gallery link

    opened by 4geru 1
  • Added Animated Radial Menu demo

    Added Animated Radial Menu demo

    https://user-images.githubusercontent.com/67534990/126862380-6a8d5a25-1bab-4308-a7d0-a9d88e7492cb.mp4

    @X-Wei Please have a look at this PR , Let me know if anything needs to be changed .

    opened by sonykurian96 1
  • Hassan calculator

    Hassan calculator

    Hassan Calculator app for Android

    import android import requests

    def main():

    Initialize the Android app

    app = android.Android()

    Display the main menu

    app.dialogCreateAlert("Hassan Calculator") app.dialogSetItems(["Addition", "Subtraction", "Multiplication", "Division", "Currency Conversion"]) app.dialogSetPositiveButtonText("Select") app.dialogShow() response = app.dialogGetResponse().result

    Get the selected option

    option = response["item"]

    Perform the selected operation

    if option == 0: # Addition app.dialogCreateInput("Addition", "Enter the first number:", "") app.dialogSetPositiveButtonText("Ok") app.dialogShow() num1 = app.dialogGetResponse().result["value"] num1 = float(num1)

    app.dialogCreateInput("Addition", "Enter the second number:", "")
    app.dialogSetPositiveButtonText("Ok")
    app.dialogShow()
    num2 = app.dialogGetResponse().result["value"]
    num2 = float(num2)
    
    result = num1 + num2
    app.dialogCreateAlert("Result", str(result))
    app.dialogSetPositiveButtonText("Ok")
    app.dialogShow()
    

    elif option == 1: # Subtraction app.dialogCreateInput("Subtraction", "Enter the first number:", "") app.dialogSetPositiveButtonText("Ok") app.dialogShow() num1 = app.dialogGetResponse().result["value"] num1 = float(num1)

    app.dialogCreateInput("Subtraction", "Enter the second number:", "")
    app.dialogSetPositiveButtonText("Ok")
    app.dialogShow()
    num2 = app.dialogGetResponse().result["value"]
    num2 = float(num2)
    
    result = num1 - num2
    app.dialogCreateAlert("Result", str(result))
    app.dialogSetPositiveButtonText("Ok")
    app.dialogShow()
    

    elif option == 2: # Multiplication app.dialogCreateInput("Multiplication", "Enter the first number:", "") app.dialogSetPositiveButtonText("Ok") app.dialogShow() num1 = app.dialogGetResponse().result["value"] num1 = float(num1)

    app.dialogCreateInput("Multiplication", "Enter the second number:", "")
    app
    
    opened by Hassan3443 0
  • TextFormField issue

    TextFormField issue

    First thanks for the app it has been really helpful. Now knowing that the app focus is to help people know on how to add some features flutter provides, in TextFormField where the user imputs the email it will be for the best to add an email verification if the user imputed a correct email format, maybe use the email validator package as an example. Finally for salary even if I can only imput number I can copy letters and paste them as a salary. This error can be seen in the image below.

    image

    opened by dgguarin20 3
  • hacker news : error thrown retrieving article list

    hacker news : error thrown retrieving article list

    Nicce example code and generally working, but retrieving articles seems erratic I am getting this error :

    ════════ Exception caught by widgets library ═══════════════════════════════════
    The following _CastError was thrown building FutureBuilder<String>(dirty, state: _FutureBuilderState<String>#018ec):
    type 'Null' is not a subtype of type 'String' in type cast
    
    The relevant error-causing widget was
    FutureBuilder<String>
    lib/screens/news.dart:57
    When the exception was thrown, this was the stack
    #0      new MyHackerNewsArticle.fromJson
    lib/screens/news.dart:167
    #1      _NewsPage.build.<anonymous closure>.<anonymous closure>
    lib/screens/news.dart:68
    #2      _FutureBuilderState.build
    package:flutter/…/widgets/async.dart:775
    #3      StatefulElement.build
    package:flutter/…/widgets/framework.dart:4691
    #4      ComponentElement.performRebuild
    package:flutter/…/widgets/framework.dart:4574
    

    I tried checking for nulls in retrieved article metadata, but ti does not fix the problem. I'm thinking that _NewsPage.build.<anonymous closure>.<anonymous closure> is the problem. How can I make this robust for network errors ?

    opened by timconsidine 0
Releases(v3.0.0)
Owner
xwei
xwei
[Examples] Simple basic isolated apps, for budding flutter devs.

Show some ❀️ and star the repo to support the project Main repository containing all the example apps demonstrating features/functionality/integration

Nishant Srivastava 6.3k Jan 6, 2023
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 445 Jan 3, 2023
A widget with side-by-side source code view.

A widget with side-by-side source code view. Extracted from the flutter-catalog open-source app.

xwei 23 Aug 29, 2022
Basf flutter components - A BASF Flutter components library for iOS and Android

basf_flutter_components A BASF Flutter components library for iOS and Android In

BASF Mobile Solutions 7 Dec 15, 2022
Windows95 UI components for Flutter apps. Bring back the nostalgic look and feel of old operating systems with this set of UI components ready to use.

Flutter95 Windows95 UI components for Flutter apps. UNDER CONSTRUCTION Screenshots Components Scaffold95 Scaffold as a Windows95 styled window. Provid

Miguel Beltran 141 Jan 2, 2023
Windows95 UI components for Flutter apps. Bring back the nostalgic look and feel of old operating systems with this set of UI components ready to use.

Flutter95 Windows95 UI components for Flutter apps. UNDER CONSTRUCTION Screenshots Components Scaffold95 Scaffold as a Windows95 styled window. Provid

Miguel Beltran 141 Dec 26, 2022
Flutter Developers may add themselves to this app for the purpose of showcasing their work

Flutter Developers may add themselves to this app for the purpose of showcasing their work

Luke Pighetti 129 Dec 6, 2022
A demo Project Showcasing HowTo use GraphQL to conect as a client to a GraphQL service.

graphql_demoapp A Flutter App to demonstrate how to work with GraphQL Server, connecting through our app as a client. Working with basic queries and m

Igor L Sambo 2 Nov 7, 2021
A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your issue.

r_scan A flutter plugin about qr code or bar code scan , it can scan from file、url、memory and camera qr code or bar code .Welcome to feedback your iss

PengHui Li 112 Nov 11, 2022
Grid-View-App - Grid View App For Flutter

grid_view_app practice purpose flutter application Getting Started This project

Md Tarequl Islam 4 Jun 9, 2022
Flutter list view - An unofficial list view for flutter

Flutter List View I don't like official list view. There are some features don't

null 24 Dec 15, 2022
πŸ“Έ Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.

Flutter Photo View A simple zoomable image/content widget for Flutter. PhotoView enables images to become able to zoom and pan with user gestures such

Fire Slime Games 1.7k Jan 3, 2023
Flutter Web application having splash screen and providing Web view Using web view packege.

Webview with Splash Screen in Flutter Flutter Web View With Splash Screen. Subscribe Our YouTube Channel. Visit Website Demo OutPut ?? Links Getting S

Habib ullah 1 Dec 7, 2021
A powerful πŸš€ Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.

⚑ A powerful & easy to use chart library for Android ⚑ Charts is the iOS version of this library Table of Contents Quick Start Gradle Maven Documentat

Philipp Jahoda 36k Dec 28, 2022
Displays a highly customizable week view (or day view) which is able to display events, to be scrolled, to be zoomed-in & out and a lot more !

Displays a highly customizable week view (or day view) which is able to display events, to be scrolled, to be zoomed-in & out and a lot more !

Hugo Delaunay 196 Dec 2, 2022
Swipeable button view - Create Ripple Animated Pages With Swipeable Button View

swipeable_button_view You can create ripple animated pages with swipeable_button

cemreonur 3 Apr 22, 2022
-UNDER DEVELOPMENT- a project built demonstrating model view view model architecture

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

Atuoha Anthony 4 Nov 28, 2022
Open Source app to view Free resources available online.

University Open Source app to view Free resources available online. The resources would be condesed into roadmaps provided by mentors skilled in their

Aditya Thakur 23 Sep 3, 2022
Netflix type clone app to learn animation and basic UI components..

netflix_clone A new Flutter application to learn animation and basic ui components.. Assets credit to dribbble artist Getting Started This project is

Divyam joshi 169 Dec 9, 2022
NeoPOP is CRED's inbuilt library for using NeoPOP components in your app

NeoPOP NeoPOP is CRED's inbuilt library for using NeoPOP components in your app. What really is NeoPOP? NeoPOP was created with one simple goal; to cr

CRED 358 Dec 29, 2022