https://docs.flutter.dev/get-started/install/macos
brew install cocoapods
GetX 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
flutter pub run flutter_launcher_icons
flutter pub run flutter_native_splash:create
Add '--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
<key>com.apple.security.network.client</key>
<true />
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 + .
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
https://api.flutter.dev/flutter/material/ColorScheme-class.html
delete android flutter create . flutter create --platforms=android,ios --project-name=flutter_boilerplate .
flutter pub add settings_ui flutter pub get
https://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.