Moving Shrine into a material_studies subdirectory (#128)
2
INDEX.md
@@ -144,7 +144,7 @@ thread and into an isolate.
|
||||
|
||||
## Demos
|
||||
|
||||
#### [Shrine](shrine) _(Flutter team)_
|
||||
#### [Shrine](material_studies/shrine) _(Flutter team)_
|
||||
The Shrine demo app from the Flutter team. It's designed to showcase how apps
|
||||
can put their own spin on the Material Design components and how to use
|
||||
ScopedModel to maintain app state across screens.
|
||||
|
||||
|
Before Width: | Height: | Size: 544 B After Width: | Height: | Size: 544 B |
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 442 B |
|
Before Width: | Height: | Size: 721 B After Width: | Height: | Size: 721 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 239 B After Width: | Height: | Size: 239 B |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 302 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 564 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
|
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 68 B |
@@ -1,5 +1,17 @@
|
||||
set -e
|
||||
|
||||
# Backs up one directory at a time, looking for one called "flutter".
|
||||
function getFlutterPath() {
|
||||
local path=".."
|
||||
local counter=0
|
||||
|
||||
while [[ "${counter}" -lt 10 ]]; do
|
||||
[ -d "${path}/flutter" ] && echo "${path}/flutter" && return 0
|
||||
let counter++
|
||||
path="${path}/.."
|
||||
done
|
||||
}
|
||||
|
||||
declare -a PROJECT_NAMES=(
|
||||
"animations" \
|
||||
"flutter_maps_firestore" \
|
||||
@@ -10,7 +22,7 @@ declare -a PROJECT_NAMES=(
|
||||
"platform_view_swift" \
|
||||
"provider_counter" \
|
||||
"provider_shopper" \
|
||||
"shrine" \
|
||||
"material_studies/shrine" \
|
||||
"veggieseasons" \
|
||||
)
|
||||
|
||||
@@ -19,14 +31,22 @@ do
|
||||
echo "== Testing '${PROJECT_NAME}' on Flutter's $FLUTTER_VERSION channel =="
|
||||
pushd "${PROJECT_NAME}"
|
||||
|
||||
localSdkPath=$(getFlutterPath)
|
||||
|
||||
if [ -z "$localSdkPath" ]
|
||||
then
|
||||
echo "Failed to find Flutter SDK for '${PROJECT_NAME}'."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Run the analyzer to find any static analysis issues.
|
||||
../flutter/bin/flutter analyze
|
||||
"${localSdkPath}/bin/flutter" analyze
|
||||
|
||||
# Run the formatter on all the dart files to make sure everything's linted.
|
||||
../flutter/bin/flutter format -n --set-exit-if-changed .
|
||||
"${localSdkPath}/bin/flutter" format -n --set-exit-if-changed .
|
||||
|
||||
# Run the actual tests.
|
||||
../flutter/bin/flutter test
|
||||
"${localSdkPath}/bin/flutter" test
|
||||
|
||||
popd
|
||||
done
|
||||
|
||||