mirror of https://github.com/flutter/samples.git
Merge branch 'main' of https://github.com/flutter/samples into compass-app
commit
a1ed3be4b7
@ -0,0 +1,279 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<issues format="6" by="lint 7.4.2" type="baseline" client="gradle" dependencies="false" name="AGP (7.4.2)" variant="all" version="7.4.2">
|
||||
|
||||
<issue
|
||||
id="RedundantLabel"
|
||||
message="Redundant label can be removed"
|
||||
errorLine1=" android:label="@string/app_name">"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/main/AndroidManifest.xml"
|
||||
line="14"
|
||||
column="13"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of org.jetbrains.kotlin:kotlin-stdlib than 1.8.22 is available: 1.9.20"
|
||||
errorLine1="}"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="39"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.core:core-ktx than 1.3.2 is available: 1.13.1"
|
||||
errorLine1=""
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="40"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.appcompat:appcompat than 1.2.0 is available: 1.7.0"
|
||||
errorLine1="dependencies {"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="41"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of com.google.android.material:material than 1.2.1 is available: 1.12.0"
|
||||
errorLine1=" implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version""
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="42"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.constraintlayout:constraintlayout than 2.0.4 is available: 2.1.4"
|
||||
errorLine1=" implementation 'androidx.core:core-ktx:1.3.2'"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="43"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.vectordrawable:vectordrawable than 1.1.0 is available: 1.2.0"
|
||||
errorLine1=" implementation 'androidx.appcompat:appcompat:1.2.0'"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="44"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.lifecycle:lifecycle-livedata-ktx than 2.2.0 is available: 2.8.2"
|
||||
errorLine1=" implementation 'com.google.android.material:material:1.2.1'"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="45"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.lifecycle:lifecycle-viewmodel-ktx than 2.2.0 is available: 2.8.2"
|
||||
errorLine1=" implementation 'androidx.constraintlayout:constraintlayout:2.0.4'"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="46"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.navigation:navigation-fragment-ktx than 2.3.2 is available: 2.7.7"
|
||||
errorLine1=" implementation 'androidx.vectordrawable:vectordrawable:1.1.0'"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="47"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.navigation:navigation-ui-ktx than 2.3.2 is available: 2.7.7"
|
||||
errorLine1=" implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="48"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.recyclerview:recyclerview than 1.1.0 is available: 1.3.2"
|
||||
errorLine1=" implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="49"
|
||||
column="20"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.test.ext:junit than 1.1.2 is available: 1.1.5"
|
||||
errorLine1=" implementation "androidx.recyclerview:recyclerview:1.1.0""
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="52"
|
||||
column="31"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDependency"
|
||||
message="A newer version of androidx.test.espresso:espresso-core than 3.3.0 is available: 3.5.1"
|
||||
errorLine1=" implementation project(path: ':flutter')"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="53"
|
||||
column="31"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="GradleDynamicVersion"
|
||||
message="Avoid using + in version numbers; can lead to unpredictable and unrepeatable builds (junit:junit:4.+)"
|
||||
errorLine1=" implementation 'androidx.navigation:navigation-ui-ktx:2.3.2'"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="51"
|
||||
column="24"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="ExpiredTargetSdkVersion"
|
||||
message="Google Play requires that apps target API level 31 or higher.
"
|
||||
errorLine1=" defaultConfig {"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="build.gradle"
|
||||
line="12"
|
||||
column="9"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="ObsoleteSdkInt"
|
||||
message="Unnecessary; SDK_INT is always >= 21"
|
||||
errorLine1=" <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/main/res/values-night/themes.xml"
|
||||
line="13"
|
||||
column="45"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="ObsoleteSdkInt"
|
||||
message="Unnecessary; SDK_INT is always >= 21"
|
||||
errorLine1=" <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/main/res/values/themes.xml"
|
||||
line="13"
|
||||
column="45"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.dimen.activity_horizontal_margin` appears to be unused"
|
||||
errorLine1=" <dimen name="activity_horizontal_margin">16dp</dimen>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/main/res/values/dimens.xml"
|
||||
line="3"
|
||||
column="12"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.dimen.activity_vertical_margin` appears to be unused"
|
||||
errorLine1=" <dimen name="activity_vertical_margin">16dp</dimen>"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/main/res/values/dimens.xml"
|
||||
line="4"
|
||||
column="12"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.drawable.ic_dashboard_black_24dp` appears to be unused"
|
||||
errorLine1="<vector xmlns:android="http://schemas.android.com/apk/res/android""
|
||||
errorLine2="^">
|
||||
<location
|
||||
file="src/main/res/drawable/ic_dashboard_black_24dp.xml"
|
||||
line="1"
|
||||
column="1"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.drawable.ic_home_black_24dp` appears to be unused"
|
||||
errorLine1="<vector xmlns:android="http://schemas.android.com/apk/res/android""
|
||||
errorLine2="^">
|
||||
<location
|
||||
file="src/main/res/drawable/ic_home_black_24dp.xml"
|
||||
line="1"
|
||||
column="1"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedResources"
|
||||
message="The resource `R.drawable.ic_notifications_black_24dp` appears to be unused"
|
||||
errorLine1="<vector xmlns:android="http://schemas.android.com/apk/res/android""
|
||||
errorLine2="^">
|
||||
<location
|
||||
file="src/main/res/drawable/ic_notifications_black_24dp.xml"
|
||||
line="1"
|
||||
column="1"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="MonochromeLauncherIcon"
|
||||
message="The application adaptive icon is missing a monochrome tag"
|
||||
errorLine1="<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">"
|
||||
errorLine2="^">
|
||||
<location
|
||||
file="src/main/res/mipmap-anydpi-v26/ic_launcher.xml"
|
||||
line="2"
|
||||
column="1"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="MonochromeLauncherIcon"
|
||||
message="The application adaptive roundIcon is missing a monochrome tag"
|
||||
errorLine1="<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">"
|
||||
errorLine2="^">
|
||||
<location
|
||||
file="src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml"
|
||||
line="2"
|
||||
column="1"/>
|
||||
</issue>
|
||||
|
||||
</issues>
|
@ -1,6 +1,6 @@
|
||||
#Wed Mar 10 09:46:16 PST 2021
|
||||
#Fri Jul 26 11:31:21 EDT 2024
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
|
||||
distributionPath=wrapper/dists
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
@ -1,6 +1,6 @@
|
||||
#Mon Dec 11 09:57:20 AEDT 2023
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
@ -0,0 +1,62 @@
|
||||
# To learn more about how to use Nix to configure your environment
|
||||
# see: https://developers.google.com/idx/guides/customize-idx-env
|
||||
{ pkgs, ... }: {
|
||||
# Which nixpkgs channel to use.
|
||||
channel = "stable-23.11"; # or "unstable"
|
||||
# Use https://search.nixos.org/packages to find packages
|
||||
packages = [
|
||||
pkgs.nodePackages.firebase-tools
|
||||
pkgs.jdk17
|
||||
pkgs.unzip
|
||||
];
|
||||
# Sets environment variables in the workspace
|
||||
env = {};
|
||||
idx = {
|
||||
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
|
||||
extensions = [
|
||||
"Dart-Code.flutter"
|
||||
"Dart-Code.dart-code"
|
||||
];
|
||||
workspace = {
|
||||
# Runs when a workspace is first created with this `dev.nix` file
|
||||
onCreate = {
|
||||
build-flutter = ''
|
||||
cd /home/user/myapp/android
|
||||
./gradlew \
|
||||
--parallel \
|
||||
-Pverbose=true \
|
||||
-Ptarget-platform=android-x86 \
|
||||
-Ptarget=/home/user/myapp/lib/main.dart \
|
||||
-Pbase-application-name=android.app.Application \
|
||||
-Pdart-defines=RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC85NzU1MDkwN2I3MGY0ZjNiMzI4YjZjMTYwMGRmMjFmYWMxYTE4ODlhLw== \
|
||||
-Pdart-obfuscation=false \
|
||||
-Ptrack-widget-creation=true \
|
||||
-Ptree-shake-icons=false \
|
||||
-Pfilesystem-scheme=org-dartlang-root \
|
||||
assembleDebug
|
||||
# TODO: Execute web build in debug mode.
|
||||
# flutter run does this transparently either way
|
||||
# https://github.com/flutter/flutter/issues/96283#issuecomment-1144750411
|
||||
# flutter build web --profile --dart-define=Dart2jsOptimization=O0
|
||||
adb -s localhost:5555 wait-for-device
|
||||
'';
|
||||
};
|
||||
|
||||
# To run something each time the workspace is (re)started, use the `onStart` hook
|
||||
};
|
||||
# Enable previews and customize configuration
|
||||
previews = {
|
||||
enable = true;
|
||||
previews = {
|
||||
web = {
|
||||
command = ["flutter" "run" "--machine" "-d" "web-server" "--web-hostname" "0.0.0.0" "--web-port" "$PORT"];
|
||||
manager = "flutter";
|
||||
};
|
||||
android = {
|
||||
command = ["flutter" "run" "--machine" "-d" "android" "-d" "localhost:5555"];
|
||||
manager = "flutter";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "Flutter dynamic theme",
|
||||
"description": "A template for a Flutter app that uses Gemini to dynamically create a theme.",
|
||||
"icon": "https://www.gstatic.com/images/branding/productlogos/idx/v1/192px.svg",
|
||||
"params": [],
|
||||
"host": {
|
||||
"virtualization": true
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
# No user-configurable parameters
|
||||
{ pkgs, ... }: {
|
||||
packages = [
|
||||
pkgs.flutter
|
||||
];
|
||||
# Shell script that produces the final environment
|
||||
bootstrap = ''
|
||||
export HOME=/home/user
|
||||
export PATH="$PATH":"$HOME/flutter/bin"
|
||||
|
||||
cp -rf ${./.} "$out"
|
||||
chmod -R +w "$out"
|
||||
rm -rf "$out/.git" "$out/idx-template".{nix,json}
|
||||
'';
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
# To learn more about how to use Nix to configure your environment
|
||||
# see: https://developers.google.com/idx/guides/customize-idx-env
|
||||
{ pkgs, ... }: {
|
||||
# Which nixpkgs channel to use.
|
||||
channel = "stable-23.11"; # or "unstable"
|
||||
# Use https://search.nixos.org/packages to find packages
|
||||
packages = [
|
||||
pkgs.nodePackages.firebase-tools
|
||||
pkgs.jdk17
|
||||
pkgs.unzip
|
||||
];
|
||||
# Sets environment variables in the workspace
|
||||
env = {};
|
||||
idx = {
|
||||
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
|
||||
extensions = [
|
||||
"Dart-Code.flutter"
|
||||
"Dart-Code.dart-code"
|
||||
];
|
||||
workspace = {
|
||||
# Runs when a workspace is first created with this `dev.nix` file
|
||||
onCreate = {
|
||||
build-flutter = ''
|
||||
cd /home/user/myapp/android
|
||||
./gradlew \
|
||||
--parallel \
|
||||
-Pverbose=true \
|
||||
-Ptarget-platform=android-x86 \
|
||||
-Ptarget=/home/user/myapp/lib/main.dart \
|
||||
-Pbase-application-name=android.app.Application \
|
||||
-Pdart-defines=RkxVVFRFUl9XRUJfQ0FOVkFTS0lUX1VSTD1odHRwczovL3d3dy5nc3RhdGljLmNvbS9mbHV0dGVyLWNhbnZhc2tpdC85NzU1MDkwN2I3MGY0ZjNiMzI4YjZjMTYwMGRmMjFmYWMxYTE4ODlhLw== \
|
||||
-Pdart-obfuscation=false \
|
||||
-Ptrack-widget-creation=true \
|
||||
-Ptree-shake-icons=false \
|
||||
-Pfilesystem-scheme=org-dartlang-root \
|
||||
assembleDebug
|
||||
# TODO: Execute web build in debug mode.
|
||||
# flutter run does this transparently either way
|
||||
# https://github.com/flutter/flutter/issues/96283#issuecomment-1144750411
|
||||
# flutter build web --profile --dart-define=Dart2jsOptimization=O0
|
||||
adb -s localhost:5555 wait-for-device
|
||||
'';
|
||||
};
|
||||
|
||||
# To run something each time the workspace is (re)started, use the `onStart` hook
|
||||
};
|
||||
# Enable previews and customize configuration
|
||||
previews = {
|
||||
enable = true;
|
||||
previews = {
|
||||
web = {
|
||||
command = ["flutter" "run" "--machine" "-d" "web-server" "--web-hostname" "0.0.0.0" "--web-port" "$PORT"];
|
||||
manager = "flutter";
|
||||
};
|
||||
android = {
|
||||
command = ["flutter" "run" "--machine" "-d" "android" "-d" "localhost:5555"];
|
||||
manager = "flutter";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "Todo list with Flutter and Gemini",
|
||||
"description": "A template for a todo list app that integrates with the Gemini API",
|
||||
"icon": "https://www.gstatic.com/images/branding/productlogos/idx/v1/192px.svg",
|
||||
"params": [],
|
||||
"host": {
|
||||
"virtualization": true
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
# No user-configurable parameters
|
||||
{ pkgs, ... }: {
|
||||
packages = [
|
||||
pkgs.flutter
|
||||
];
|
||||
# Shell script that produces the final environment
|
||||
bootstrap = ''
|
||||
export HOME=/home/user
|
||||
export PATH="$PATH":"$HOME/flutter/bin"
|
||||
|
||||
cp -rf ${./.} "$out"
|
||||
chmod -R +w "$out"
|
||||
rm -rf "$out/.git" "$out/idx-template".{nix,json}
|
||||
'';
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
flutter doctor -v
|
||||
|
||||
declare -ar PROJECT_NAMES=(
|
||||
"add_to_app/android_view/flutter_module_using_plugin"
|
||||
"add_to_app/books/flutter_module_books"
|
||||
"add_to_app/fullscreen/flutter_module"
|
||||
"add_to_app/multiple_flutters/multiple_flutters_module"
|
||||
"add_to_app/plugin/flutter_module_using_plugin"
|
||||
"add_to_app/prebuilt_module/flutter_module"
|
||||
"ai_recipe_generation"
|
||||
"analysis_defaults"
|
||||
"android_splash_screen"
|
||||
"animations"
|
||||
"asset_transformation"
|
||||
"background_isolate_channels"
|
||||
"code_sharing/client"
|
||||
"code_sharing/server"
|
||||
"code_sharing/shared"
|
||||
"context_menus"
|
||||
"deeplink_store_example"
|
||||
"desktop_photo_search/fluent_ui"
|
||||
"desktop_photo_search/material"
|
||||
"dynamic_theme"
|
||||
"experimental/federated_plugin/federated_plugin"
|
||||
"experimental/federated_plugin/federated_plugin/example"
|
||||
"experimental/federated_plugin/federated_plugin_macos"
|
||||
"experimental/federated_plugin/federated_plugin_platform_interface"
|
||||
"experimental/federated_plugin/federated_plugin_web"
|
||||
"experimental/federated_plugin/federated_plugin_windows"
|
||||
"experimental/pedometer"
|
||||
"experimental/pedometer/example"
|
||||
"experimental/varfont_shader_puzzle"
|
||||
"experimental/web_dashboard"
|
||||
"flutter_maps_firestore"
|
||||
"form_app"
|
||||
"game_template"
|
||||
"gemini_tasks"
|
||||
"google_maps"
|
||||
"infinite_list"
|
||||
"ios_app_clip"
|
||||
"isolate_example"
|
||||
"material_3_demo"
|
||||
"navigation_and_routing"
|
||||
"place_tracker"
|
||||
"platform_channels"
|
||||
"platform_design"
|
||||
"platform_view_swift"
|
||||
"provider_counter"
|
||||
"provider_shopper"
|
||||
"simple_shader"
|
||||
"simplistic_calculator"
|
||||
"simplistic_editor"
|
||||
"testing_app"
|
||||
"veggieseasons"
|
||||
"web_embedding/element_embedding_demo"
|
||||
"web/_tool"
|
||||
"web/samples_index"
|
||||
)
|
||||
|
||||
echo "--- Running flutter clean and flutter pub get for each sample ---"
|
||||
|
||||
for PROJECT_NAME in "${PROJECT_NAMES[@]}"
|
||||
do
|
||||
echo "== Cleaning '${PROJECT_NAME}' with Flutter clean =="
|
||||
pushd "${PROJECT_NAME}"
|
||||
|
||||
# run `flutter clean` for project
|
||||
flutter clean
|
||||
|
||||
# Grab packages.
|
||||
flutter pub get
|
||||
|
||||
popd
|
||||
done
|
||||
|
||||
echo "--- Success ---"
|
Loading…
Reference in new issue