https://docs.flutter.dev/get-started/install/macos
brew install cocoapodsGetX Snippets
Get.updateLocale(const Locale('zh', 'CN'));
Get.updateLocale(const Locale('en', 'US'));https://fonts.google.com/icons
chat https://absyz.com/getconnect-the-best-way-to-perform-api-operations-in-flutter-with-getx/
- Dart
- Error Lens
- Flutter
- GetX Snippets
Ctrl + . - Wrap or Extract Widget
- Prettier - Code formatter
- Dart Data Class generator
- Bloc
dart run flutter_launcher_iconsdart run flutter_native_splash:createAdd '--disable-web-security' in the chrome web configuration.
- Go to flutter\bin\cache and remove a file named: flutter_tools.stamp
- Go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart.
- Find '--disable-extensions'
- Add '--disable-web-security', # !!! Including ,(comma)
Add com.apple.security.network.client to macos/Runner/DebugProfile.entitiements macos/Runner/release.entitiements
api: Single http request client: Multiple requests and a persistent connection
Model: lib\models View: lib\ui Controller: lib\providers Services: lib\services
QuickType - Convert JSON to Class
Bloc Dart Data Class Generator
Click the light bulb Windows: Crtl + . Mac OS: Command + .
PNG to SVG SVG Cleaner Online SVG Compressor
C:\Tools\Flutter\packages\flutter_tools\gradle\flutter.gradle
Scaffold(
body: SafeArea(
child: Column(children: <Widget>[
Expanded(
child: SingleChildScrollView(),
)
]
),
);Scaffold(
body: SafeArea(
child: ListView(
children: <Widget>[],
),
);flutter pub outdated
flutter pub upgrade
flutter clean && flutter pub get # Debug
flutter build apk
build/app/outputs/debug/apk/release/app-release.apk
build/app/outputs/flutter-apk/app-release.apk
# Release
flutter build appbundle --release
build/app/outputs/bundle/release/app-release.aabhttps://api.flutter.dev/flutter/material/ColorScheme-class.html
flutter delete android
flutter create .
flutter create --platforms=android,ios --project-name=xfoma .
# Flutter add package
flutter pub add settings_ui
flutter pub get
# Clear Flutter cache files
flutter clean && flutter pub gethttps://github.com/flutter/packages https://github.com/fluttercommunity/plus_plugins
-
Packages At a minimum, a Dart package is a directory containing a pubspec.yaml file. Additionally, a package can contain dependencies (listed in the pubspec), Dart libraries, apps, resources, tests, images, fonts, and examples. The pub.dev site lists many packages—developed by Google engineers and generous members of the Flutter and Dart community— that you can use in your app.
-
Plugins A plugin package is a special kind of package that makes platform functionality available to the app. Plugin packages can be written for Android (using Kotlin or Java), iOS (using Swift or Objective-C), web, macOS, Windows, Linux, or any combination thereof. For example, a plugin might provide Flutter apps with the ability to use a device's camera.