FlutterGetX系列教程---Cli使⽤以及常⽤命令GetX Cli安装
视频教程地址
零基础视频教程地址
第⼀步:安装Cli脚⼿架
我们通过命令flutter pub global activate get_cli 进⾏脚⼿架的全局安装,本⽂以Mac OS为例。
JMdeMacBook-Pro:~ jm$ flutter pub global activate get_cli
+ _fe_analyzer_shared 25.0.0
+ analyzer 2.2.0
+ ansicolor 2.0.1
+ archive 3.1.2
+ args 2.2.0
+ async 2.8.2
+ charcode 1.3.1
+ cli_dialog 0.5.0
+ cli_menu 0.3.0-nullsafety.0
+ cli_util 0.3.3
+ clock 1.1.0
+ collection 1.15.0
+ convert 3.0.1
+ crypto 3.0.1
+ dart_console 1.0.0
+ dart_style 2.0.3
+ ffi 1.1.2
+ file 6.1.2
+ get_cli 1.6.0
+ glob 2.0.1
+ http 0.13.3
+ http_parser 4.0.0
+ intl 0.17.0
+ matcher 0.12.11
+ meta 1.7.0
+ package_config 2.0.0
+ path 1.8.0
+ pedantic 1.11.1
+ process_run 0.12.1+1
+ pub_semver 2.0.0
+ pubspec 2.0.1
+ quiver 3.0.1
+ recase 4.0.0
+ source_span 1.8.1
+ stack_trace 1.10.0
+ string_scanner 1.1.0
+ synchronized 3.0.0
+ term_glyph 1.2.0
+ typed_data 1.3.0
+ uri 1.0.0
+ version 2.0.0
+ watcher 1.0.0
+ win32 2.2.9
+ yaml 3.1.0
Downloading get_cli 1.
Downloading version 2.
Downloading recase 4.
Downloading pubspec 2.
Downloading cli_menu 0.3.
Downloading cli_dialog 0.
Downloading ansicolor 2.
Downloading uri 1.
workspacedata (created)
workspace/xcshareddata/IDEWorkspaceChecks.plist (created)
workspace/settings (created)
ios/Runner/Info.plist (created)
ios/assets/LaunchImage.imageset/LaunchImage@2x.png (created)
ios/assets/LaunchImage.imageset/LaunchImage@3x.png (created)
ios/assets/LaunchImage.imageset/README.md (created)
ios/assets/LaunchImage.imageset/Contents.json (created)
ios/assets/LaunchImage.imageset/LaunchImage.png (created)
ios/assets/AppIcon.appiconset/Icon-App-76x76@2x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-29x29@1x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-40x40@1x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-20x20@1x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-1024x1024@1x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-20x20@3x.png (created)
ios/assets/AppIcon.appiconset/Contents.json (created)
ios/assets/AppIcon.appiconset/Icon-App-20x20@2x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-29x29@3x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-40x40@2x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-60x60@3x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-60x60@2x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-76x76@1x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-40x40@3x.png (created)
ios/assets/AppIcon.appiconset/Icon-App-29x29@2x.png (created)
ios/Runner/Base.lproj/LaunchScreen.storyboard (created)
ios/Runner/Base.lproj/Main.storyboard (created)
workspacedata (created)
workspace/xcshareddata/IDEWorkspaceChecks.plist (created)
workspace/settings (created)  deproj/xcshareddata/scheme (created)
ios/fig (created)
ios/fig (created)
ios/Flutter/AppFrameworkInfo.plist (created)
ios/.gitignore (created)
getx_example.iml (created)
.gitignore (created)
web/favicon.png (created)
web/index.html (created)
web/manifest.json (created)
web/icons/Icon-maskable-512.png (created)
web/icons/Icon-192.png (created)
web/icons/Icon-maskable-192.png (created)
web/icons/Icon-512.png (created)
.metadata (created)
workspacedata (created)
workspace/xcshareddata/IDEWorkspaceChecks.plist (created)
macos/assets/AppIcon.appiconset/app_icon_16.png (created)
macos/assets/AppIcon.appiconset/app_icon_1024.png (created)
macos/assets/AppIcon.appiconset/app_icon_256.png (created)
macos/assets/AppIcon.appiconset/app_icon_64.png (created)
macos/assets/AppIcon.appiconset/app_icon_512.png (created)
macos/assets/AppIcon.appiconset/app_icon_128.png (created)
macos/assets/AppIcon.appiconset/Contents.json (created)
macos/assets/AppIcon.appiconset/app_icon_32.png (created)
macos/itlements (created)
macos/Runner/Base.lproj/MainMenu.xib (created)
macos/Runner/MainFlutterWindow.swift (created)
macos/Runner/fig (created)
macos/Runner/fig (created)
macos/Runner/fig (created)
macos/Runner/fig (created)
macos/Runner/AppDelegate.swift (created)
macos/Runner/Info.plist (created)
macos/itlements (created)
workspace/xcshareddata/IDEWorkspaceChecks.plist (created)  deproj/project.pbxproj (created)
deproj/xcshareddata/scheme (created)
macos/fig (created)
macos/fig (created)
macos/.gitignore (created)
ios/Runner/AppDelegate.h (created)
ios/Runner/main.m (created)
ios/Runner/AppDelegate.m (created)
ios/Runner/AppDelegate.m (created)
deproj/project.pbxproj (created)
android/app/src/l (created)
android/app/src/main/res/mipmap-mdpi/ic_launcher.png (created)
android/app/src/main/res/mipmap-hdpi/ic_launcher.png (created)
android/app/src/main/res/drawable/l (created)
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (created)
android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (created)
android/app/src/main/res/l (created)
android/app/src/main/res/l (created)
android/app/src/main/res/drawable-v21/l (created)
android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (created)
android/app/src/l (created)
git常用指令android/app/src/l (created)
android/gradle/wrapper/gradle-wrapper.properties (created)
android/gradle.properties (created)
android/.gitignore (created)
adle (created)
android/adle (created)
android/app/src/main/java/com/jimi/getx_example/MainActivity.java (created)
adle (created)
android/getx_example_android.iml (created)
analysis_options.yaml (created)
.idea/runConfigurations/l (created)
.idea/libraries/l (created)
.idea/l (created)
.l (created)
.
l (created)
(created)
linux/my_application.h (created)
linux/ (created)
linux/ (created)
linux/.gitignore (created)
(created)
Wrote 129 files.
All done!
In order to run your application, type:
$ cd .
$ flutter run
Your application code is in ./lib/main.dart.
Running `flutter pub get` …
$ flutter pub get
Running "flutter pub get" in                       898ms
$ dart migrate --apply-changes --skip-import-check
Migrating /Users/jm/Desktop/Project/getx/getx_example
See dart.dev/go/null-safety-migration for a migration guide.
All sources appear to be already migrated.  Nothing to do.
✖  + HandshakeException: Connection terminated during handshake
✓  File: analysis_options.yaml created successfully at path: analysis_options.yaml
-->  1) GetX Pattern (by Kauê)
2) CLEAN (by Arktekko)
Your lib folder is not empty. Are you sure you want to overwrite your application?
WARNING: This action is irreversible
-->  1) Yes!
2) No
✓  'Package: get installed!
✓  File: main.dart created successfully at path: lib/main.dart
✓  File: home_controller.dart created successfully at path: ./lib/app/modules/home/controllers/home_controller.dart ✓  File: home_view.dart created successfully at path: ./lib/app/modules/home/views/home_view.dart
✓  File: home_binding.dart created successfully at path: ./lib/app/modules/home/bindings/home_binding.dart
✓  File: app_routes.dart created successfully at path: lib/app/routes/app_routes.dart

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。