0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Flutterのウィジェット/クラスの種類(メモ)

Posted at

ConsumerWidget
=StatelessWidget に ref を持たせたもの。

ConsumerStatefulWidget + ConsumerState
=StatefulWidget に ref を持たせたもの。

Consumer
=任意のウィジェットツリーの一部で ref を使いたいとき。
 任意の場所でrefを発動できる。

ProviderScope
=アプリ全体に Provider を使えるようにする

void main() {
  runApp(
   #ProviderScope(
      child: MyApp(),
    ),
  );
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?