My First Flutter App
เขียน Flutter App
App Icon:
dependencies: ... flutter_launcher_icons: "^0.9.0"
flutter_icons:<br /> image_path: "assets/icon/logo_192.png"<br /> android: true ios: true remove_alpha_ios: true
# flutter pub run flutter_launcher_icons:main
อย่าลืมกำหนด Permission ด้วยนะ ไม่อย่างนั้นจะเปิด WebView เข้าเน็ตไม่ได้
1) Add Internet permission
in the Android manifest: android/app/src/main/AndroidManifest.xml right above application tag.
<uses-permission android:name="android.permission.INTERNET" />
in ios/Runner/Info.plist
<key>io.flutter.embedded_views_preview</key> <string>YES</string>
in macos/Runner/DebugProfile.entitlements and macos/Runner/Release.entitlements
<key>com.apple.security.network.client</key> <true/>
2) Add full url (with http://www) 3) Call flutter clean, delete build folder.
เอาคำว่า "DEBUG" ของเธอคืนไป
ใส่ไว้ใน MaterialApp
debugShowCheckedModeBanner: false
ที่มา
- webview_flutter 2.0.2
- Different ways to change the status bar and navigation bar color (iOS and Android) in Flutter
- Flutter Launcher Icons
- How to use user-agent in webview-flutter Flutter?
- Flutter webview intercept and add headers to all requests
- Webview in flutter not working getting a platform error
- Flutter BottomNavigationBar not working with more than three items