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