Rails devise token auth + ReactNative || flutterの雛形コード

React Nativeとflutterの両方を使うことになったので、いつも使っているrails APIにつなげることができるようにしました。 ※React Nativeは割と綺麗に書きましたが、flutterは最後のリ …

Filter chain halted as :validate_sign_up_params rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 1.4ms | ActiveRecord: 0.0ms | Allocations: 193)

flutterでrailsのdevise token authに新規登録にリクエストを投げたところ、タイトルのエラーが発生 pry-remoteで確認したところ中身がなかったので、flutterの方に問題がある可能性 f …

SocketException: OS Error: Connection refused, errno = 111, address = localhost, port = 53452

flutterでローカルのAPIにつなげようとしたところタイトルのエラーが発生しました。 解決方法はこちら 参考記事 SocketException: OS Error: Connection refused, errn …

ChangeNotifierProxyProviderがうまく使えない問題

エラー内容 ChangeNotifierProxyProvider のbuilderに適切な情報を入れているはずなのにエラーが消えなかったので調べてみたところ、4系からはbuilder ではなくupdate を使うらしい …

iOSエミュレーターのキー入力リスト

キーボード出現させたり、ペーストさせたりの情報をまとめておきます 主に自分ようです キーボード出現させる 同時に押すことでキーボードを出すことができる。消すときも同じコマンド。 ペースト 参考記事 Xcode 6: Ke …

The argument type ‘Iterable‘ can’t be assigned to the parameter type ‘List‘.

flutter始めたばかりで1時間ほどタイトルのエラーではまりました とりあえず結論 なぜ発生していたか? Rowのchildrenには、通常<Widget>[]が入っており、Widget型のリストが期待され …

Error: The argument type ‘Widget Function(BuildContext)’ can’t be assigned to the parameter type ‘Widget Function(BuildContext, Widget)’.

flutterにproviderを入れたときにタイトルのエラーが発生しました Providerのバージョンが4系だとcreate を使わないといけないらしく、変更したところ動きました。 参考記事 なし

type ‘MyApp’ is not a subtype of type ‘StatelessWidget’ in type cast

flutterでStatelessWidgetからStatefulWidgetに変更したらタイトルのエラーが発生しました。 調べてみたところ、上記のエラーはリスタートすることで治るらしいので、試したところ無事にエラーは消 …