This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp( | |
| const Center( | |
| child: Text( | |
| 'Hello, world!', | |
| textDirection: TextDirection.ltr, | |
| ), | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp( | |
| const Center( | |
| child: Text( | |
| 'Hello, world!', | |
| textDirection: TextDirection.ltr, | |
| style: TextStyle( | |
| color: Colors.blue, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp( | |
| Center( | |
| child: Column( | |
| // mainAxisAlignment: MainAxisAlignment.center, | |
| children: const [ | |
| /// Text 1 | |
| Text( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| /////////////////////////////// | |
| // ① Main:Flutterアプリもmain()からコードが実行されます。 | |
| // `void main() => runApp(MyApp());` でも意味は同じです。 | |
| void main() { | |
| return runApp(MyApp()); | |
| } | |
| /////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| /////////////////////////////// | |
| // ① Main:Flutterアプリもmain()からコードが実行されます。 | |
| // `void main() => runApp(MyApp());` でも意味は同じです。 | |
| void main() { | |
| return runApp(MyApp()); | |
| } | |
| /////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| /////////////////////////////// | |
| // ① Main:Flutterアプリもmain()からコードが実行されます。 | |
| // `void main() => runApp(MyApp());` でも意味は同じです。 | |
| void main() { | |
| return runApp(MyApp()); | |
| } | |
| /////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| /////////////////////////////// | |
| // ① Main:Flutterアプリもmain()からコードが実行されます。 | |
| // `void main() => runApp(MyApp());` でも意味は同じです。 | |
| void main() { | |
| return runApp(MyApp()); | |
| } | |
| /////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| /////////////////////////////// | |
| // ① Main:Flutterアプリもmain()からコードが実行されます。 | |
| // `void main() => runApp(MyApp());` でも意味は同じです。 | |
| void main() { | |
| return runApp(MyApp()); | |
| } | |
| /////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| // ① 必要なライブラリをインポート | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| /////////////////////////////// | |
| void main() => runApp(MyApp()); | |
| /////////////////////////////// | |
| class MyApp extends StatelessWidget { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final _textFieldController = TextEditingController(); | |
| Future<String?> _showTextInputDialog(BuildContext context) async { | |
| return showDialog( | |
| context: context, | |
| builder: (context) { | |
| return AlertDialog( | |
| title: const Text('タイトル'), | |
| content: TextField( | |
| controller: _textFieldController, |
OlderNewer