PR
Calendar
Keyword Search
Category
Comments
最初のホットリロード
lib/main.dart の最後で、1 つ目の Text オブジェクトの文字列に何かを追加して、ファイルを保存します。
次に例を示します。
| // ... |
| return Scaffold( |
| body: Column( |
| children: [ |
| Text('A random AWESOME idea:'), // ← Example change. |
| Text(appState.current.asLowerCase), |
| ], |
| ), |
| ); |
| // ... |
| // … |
| void main() { |
| runApp(MyApp()); |
| } |
| // ... |
| // ... |
| class MyApp extends StatelessWidget { |
| const MyApp({super.key}); |
| @override |
| Widget build(BuildContext context) { |
| return ChangeNotifierProvider( |
| create: (context) => MyAppState(), |
| child: MaterialApp( |
| title: 'Namer App', |
| theme: ThemeData( |
| useMaterial3: true, |
| colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepOrange), |
| ), |
| home: MyHomePage(), |
| ), |
| ); |
| } |
| } |
| // ... |

flutterでアプリの作成…?(初めての Flut… 2024.01.27
flutterでアプリの作成…?(初めての Flut… 2024.01.26
flutterでアプリの作成…?(初めての Flut… 2024.01.25