flutter
updateのときにmap含むオブジェクト投げたら怒られた。 Invalid argument: Instance of '_CompactLinkedHashSet<String>') mapObj がマップの場合、こんな風に変換が必要だった。 'hoge': List<String>.from(mapObj),</string></string>
flutter doctor を使い確認する # sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Flutter自体入れたFLUTTER_SDK_PATHを指定する ~/developmentにflutterを入れたと仮定。 export FLUTTER_SDK_PATH="$PATH":"$HOME/development/flutter" Flutterコマンド自身 export PATH="$PATH":"$FLUTTER_SDK_PATH/bin" fvmコマンド export PATH="$PATH":…
firebase_storage: ^4.0.1をfirebase_storage: ^5.0.1にして final metaData = StorageMetadata(contentType: 'image/jpg'); final task = ref.putFile(imageFile, metaData); final onComplete = await task.onComplete; final url = await onComplete.ref.…
firebase authentication - Make flutter app force a user to choose an account with FirebaseAuth and GoogleSignInAuthentication - Stack Overflow /// サインアウト Future<void> signOut() async { final googleSignIn = GoogleSignIn(); // これをしないと</void>…
ScrollController not attached to any scroll views. のエラー。 _scrollController.jumpTo(0); を使う時にViewの中が空っぽの瞬間があるとエラーになるっぽい。 // スクロールを初期位置へ if (_scrollController.hasClients) { _scrollController.jumpTo(…
www.it-swarm-ja.tech 再起動と言ってもウィジットの再構築かもしれない。 import 'package:flutter/material.dart'; class RestartWidget extends StatefulWidget { const RestartWidget({this.child}); final Widget child; static void restartApp(BuildC…
aabを乗せるときの変な警告が発生。 ・公式の参考 support.google.com [リリース] > [デバイスとバージョン] > [App Bundle エクスプローラ] を選択します。 見つからいときは、「App Bundle エクスプローラ」で上にあるバーから検索するといい。 [ダウンロ…
android/build.gradle options.compilerArgs << "-Xlint:deprecation" を入れる allprojects { repositories { google() jcenter() } gradle.projectsEvaluated{ tasks.withType(JavaCompile){ options.compilerArgs << "-Xlint:deprecation" } } }
qiita.com flutter create --org jp.shinriyo.super_app -i swift -a kotlin super_app super_app がアプリの名前 基礎から学ぶ Flutter作者:石井幸次発売日: 2019/12/25メディア: Kindle版 Flutter モバイルアプリ開発バイブル作者:南里勇気,太田佳敬,矢田…
これが参考になる https://cyublog.com/articles/flutter-ja/flutter-webview-plugin/ FlutterAppは任意の文字 WebView内のJavaScript FlutterAppが勝手にできてる? hoge_barが送られる文字。これを色々やれば統一感あるコードになりそう。 if (typeof Flut…
https://www.devsplanet.com/question/flutter-singlechildscrollview-doesn-39-t-work-with-columns-and-grid-view-why GridView.count( physics: const NeverScrollableScrollPhysics(), ... ), これで解決したw
ReactNativeのStackOverflowだがこんなのある react native - Android Splash Screen shifts - Stack Overflow CordovaのIssueだが https://github.com/apache/cordova-android/issues/844 多分特殊なborderless devicesなAndroid端末のせい? android/app/s…
あの憎きInfo.plistのCFBundleDevelopmentRegionをいじらないと駄目 ios/Runner/Info.plistを開き、 <key>CFBundleDevelopmentRegion</key> <string>ja_JP</string> Xcode上では、このように選べる。 おまけ flutter_webview_pluginというプラグインを使っていて、 WebviewScaffoldのhead…
dart.dev https://qrunch.net/@takopom55/entries/ud0qBb5RWfQ0Q0hk
FlutterFirebaseInstanceIDService.java:21: error: cannot find symbol LocalBroadcastManager.getInstance(context).sendBroadcast(intent); FlutterFirebaseInstanceIDService.java uses or overrides a deprecated API. Note: Recompile with -Xlint:dep…
これやればいいだろー。 flutter clean rm .packages rm -rf ~/Library/Developer/Xcode/DerivedData rm ios/Podfile.lock rm -rf ios/Runner.xcworkspace/ cd ios pod deintegrate pod install open ./Runner.xcworkspace/ またはFVMなら .fvm/flutter_sdk/…
main.dartにこれいれる Future<void> main() async { WidgetsFlutterBinding.ensureInitialized(); // ステータスバーの上部の変な半透明を消す SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( statusBarColor: Colors.transparent, )); なぜこれデ</void>…
android/app/src/main/kotlin/jp/company/app/Application.kt package jp.company.app import io.flutter.app.FlutterApplication import io.flutter.plugin.common.PluginRegistry import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallbac…
flutter_local_notificationsをカスタム通知と連携で利用するかと思うが、 schedule や show()を一回呼ぶ縛りがあった。単に登録できない。 flutter_local_notifications: ^1.4.4+4 を使ってた。 github.com しかし、解決は時間を無限というか厳密にはだいぶ…
https://pub.dev/packages/firebase_messaging firebase_messagingにてonBackgroundMessageを使うときは、 TOP-LEVEL か STATIC の関数しか使えない。 ○呼べる関数について TOP-LEVELとはクラスから出てるような関数。STATICはその名の通りstaticついてるや…
FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileReleaseKotlin'. > Failed to install the following Android SDK packages as some licences have not been accepted. build-too…
[Flutter] Integration Test を書く時の 7 つのポイント - Qiita ↑これがいい。 https://qiita.com/chooyan_eng/items/700076224d1297de2d4b 【Flutter】Widget テストの「あれ、これどうやるんだろう?」集 - Qiita ↑ハマりどころ https://qiita.com/kasa_l…
'getCredential' is deprecated and shouldn't be used. Deprecated in favor of `FacebookAuthProvider.credential()`. credentialにする。 PhoneVerificationFailed => FirebaseAuthException FirebaseAuth.instance.currentUser() => () 不要で await 不…
https://github.com/flutter/flutter/issues/17941 これが参考になる。AndroidManifest いじる必要あり。 プラグインのREADMEにプルリク。取り込まれろ!! https://github.com/FirebaseExtended/flutterfire/pull/3336/files あと、画像の仕様がマニアック…
.config/fish/config.fish set -x PATH $HOME/development/flutter_apps/flutter/bin/cache/dart-sdk/bin $PATH # fvm set -x PATH $HOME/.pub-cache/bin $PATH AndroidStudioでは /Users/shinriyo/fvm/versions/1.20.0`みたいにで設定しておく。 /Users/shi…
dart - Recreate Flutter's ios and android folder with Swift and Kotlin - Stack Overflow cd project flutter create . これで勝手にやってくれるらしいが iosフォルダとか消さないとやってくれない気する。
configurable_expansion_tile https://pub.dev/packages/configurable_expansion_tile // アコーディオン Widget _accordionWidget( BuildContext context, bool isWorking, String title, String body) { return ConfigurableExpansionTile( // 開いたとき…
https://stackoverflow.com/questions/59516408/flutter-app-stuck-at-running-gradle-task-assembledebug export JAVA_HOME=`/usr/libexec/java_home -v 1.8` cd android ./gradlew clean ./gradlew build
for (final todo in todos.data.value) TodoItem(todo: todo) とかくと以下のエラー error: This requires the 'control-flow-collections' experiment to be enabled. (experiment_not_enabled at [my_app] lib/main.dart:68) https://stackoverflow.com/qu…