mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-25 07:07:32 -04:00
[flutter]: config flowy dev script
This commit is contained in:
parent
f1251e7152
commit
e588f15277
3 changed files with 42 additions and 30 deletions
|
@ -129,6 +129,13 @@ class HomeScreen extends StatelessWidget {
|
||||||
.constrained(minWidth: 500)
|
.constrained(minWidth: 500)
|
||||||
.positioned(left: layout.homePageLOffset, right: layout.homePageROffset, bottom: 0, top: 0, animate: true)
|
.positioned(left: layout.homePageLOffset, right: layout.homePageROffset, bottom: 0, top: 0, animate: true)
|
||||||
.animate(layout.animDuration, Curves.easeOut),
|
.animate(layout.animDuration, Curves.easeOut),
|
||||||
|
bubble
|
||||||
|
.positioned(
|
||||||
|
right: 20,
|
||||||
|
bottom: 16,
|
||||||
|
animate: true,
|
||||||
|
)
|
||||||
|
.animate(layout.animDuration, Curves.easeOut),
|
||||||
editPannel
|
editPannel
|
||||||
.animatedPanelX(
|
.animatedPanelX(
|
||||||
duration: layout.animDuration.inMilliseconds * 0.001,
|
duration: layout.animDuration.inMilliseconds * 0.001,
|
||||||
|
@ -136,13 +143,6 @@ class HomeScreen extends StatelessWidget {
|
||||||
isClosed: !layout.showEditPannel,
|
isClosed: !layout.showEditPannel,
|
||||||
)
|
)
|
||||||
.positioned(right: 0, top: 0, bottom: 0, width: layout.editPannelWidth),
|
.positioned(right: 0, top: 0, bottom: 0, width: layout.editPannelWidth),
|
||||||
bubble
|
|
||||||
.positioned(
|
|
||||||
right: 20,
|
|
||||||
bottom: 20,
|
|
||||||
animate: true,
|
|
||||||
)
|
|
||||||
.animate(layout.animDuration, Curves.easeOut),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
10
env.mk
Normal file
10
env.mk
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
flowy_dev: install_rust
|
||||||
|
cargo make flowy_dev
|
||||||
|
|
||||||
|
install_rust:
|
||||||
|
#https://rust-lang.github.io/rustup/installation/other.html
|
||||||
|
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
||||||
|
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
|
||||||
|
echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bash_profile
|
||||||
|
source ~/.bash_profile
|
|
@ -1,43 +1,45 @@
|
||||||
[tasks.env_setup]
|
[tasks.flowy_dev]
|
||||||
|
run_task = { name = ["install_targets","install_diesel", "install_protobuf", "install_tools", "install_flutter"] }
|
||||||
|
|
||||||
|
[tasks.install_diesel]
|
||||||
script = """
|
script = """
|
||||||
brew install sqlite3
|
brew install sqlite3
|
||||||
cargo install diesel_cli --no-default-features --features sqlite
|
cargo install diesel_cli --no-default-features --features sqlite
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[tasks.install_sqlite3]
|
[tasks.install_targets]
|
||||||
script = """
|
script = """
|
||||||
brew install sqlite3
|
rustup target add x86_64-apple-ios
|
||||||
cargo install diesel_cli --no-default-features --features sqlite
|
rustup target add x86_64-apple-darwin
|
||||||
|
rustup target add aarch64-apple-ios
|
||||||
|
rustup target add aarch64-apple-darwin
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[tasks.install_rust]
|
[tasks.install_protobuf]
|
||||||
script = """
|
script = """
|
||||||
echo 'install rust'
|
brew install protobuf@3.13
|
||||||
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
#brew tap dart-lang/dart
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly -y
|
#brew install dart
|
||||||
echo 'export PATH="$$HOME/.cargo/bin:$$PATH"' >> ~/.bash_profile
|
|
||||||
source ~/.bash_profile
|
#https://pub.dev/packages/protoc_plugin
|
||||||
|
pub global activate protoc_plugin
|
||||||
|
cargo install --version 2.20.0 protobuf-codegen
|
||||||
"""
|
"""
|
||||||
|
|
||||||
[tasks.install_tools]
|
[tasks.install_tools]
|
||||||
script = """
|
script = """
|
||||||
#targets
|
|
||||||
rustup target add x86_64-apple-darwin
|
|
||||||
|
|
||||||
#tools
|
|
||||||
echo 'install tools'
|
|
||||||
rustup component add rustfmt
|
rustup component add rustfmt
|
||||||
cargo install cargo-expand
|
cargo install cargo-expand
|
||||||
cargo install cargo-watch
|
cargo install cargo-watch
|
||||||
cargo install cargo-cache
|
cargo install cargo-cache
|
||||||
cargo install bunyan
|
cargo install bunyan
|
||||||
|
|
||||||
#protobuf code gen env
|
|
||||||
brew install protobuf@3.13
|
|
||||||
brew tap dart-lang/dart
|
|
||||||
brew install dart
|
|
||||||
pub global activate protoc_plugin
|
|
||||||
|
|
||||||
cargo install --version 2.20.0 protobuf-codegen
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
[tasks.install_flutter]
|
||||||
|
script = """
|
||||||
|
echo "[❤️] Follow the https://flutter.dev/docs/get-started/install instructions to install the flutter, skip if you already installed."
|
||||||
|
echo "Switch to dev channel with command: flutter channel dev"
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue