From 137e34e5023d706797e98aaff9f3402d4e52f483 Mon Sep 17 00:00:00 2001 From: cobo <39579511+nzmgfdprs@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:46:17 +0900 Subject: [PATCH 1/3] =?UTF-8?q?chore:=20=E5=85=A5=E5=8A=9B=E7=94=BB?= =?UTF-8?q?=E9=9D=A2=E3=81=AE=E5=88=9D=E6=9C=9F=E5=80=A4=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/character_input_page.dart | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/ui/character_input_page.dart b/lib/ui/character_input_page.dart index 6e0cc82..5b2c282 100644 --- a/lib/ui/character_input_page.dart +++ b/lib/ui/character_input_page.dart @@ -14,18 +14,16 @@ class CharacterInputPage extends ConsumerStatefulWidget { class _CharacterInputPageState extends ConsumerState { final _formKey = GlobalKey(); - final _nameController = TextEditingController(text: 'フラッター'); + final _nameController = TextEditingController(text: 'ペンペン'); final _personalityController = TextEditingController( - text: '''好奇心旺盛で新しい技術を学ぶことが大好き。 -困っている開発者を見かけると放っておけない優しい性格''', + text: '好奇心旺盛で、仲間思い。寒さに強く、泳ぎが得意。少し臆病だけど、仲間と一緒なら勇気を出せる。', ); final _storyController = TextEditingController( - text: '''スマートフォンアプリ開発の世界で生まれ育った若きエンジニア。 -クロスプラットフォーム開発の可能性に魅了され、世界中の開発者たちと知識を共有しながら成長を続けている。 -休日は技術書を読んだり、コミュニティイベントに参加したりして過ごしている。''', + text: + '南極の小さなコロニーで暮らすペンギン。毎日、仲間と一緒に魚を探して泳いだり遊んだりして過ごしている。将来は、もっと遠くの海まで探検してみたい。', ); - int _age = 23; - String _gender = '女性'; + int _age = 3; + String _gender = '未選択'; // 年齢選択肢の生成 final List _ageList = List.generate(100, (index) => index + 1); From 6d6fa0008d2001cb9f46f1c3ea028770990f88a2 Mon Sep 17 00:00:00 2001 From: cobo <39579511+nzmgfdprs@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:47:18 +0900 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E7=B5=90=E6=9E=9C=E7=94=BB=E9=9D=A2?= =?UTF-8?q?=E3=81=AB=20SingleChildScrollView=20=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/character_result_page.dart | 106 +++++++++++++++--------------- 1 file changed, 54 insertions(+), 52 deletions(-) diff --git a/lib/ui/character_result_page.dart b/lib/ui/character_result_page.dart index bd6e04a..8c57ddc 100644 --- a/lib/ui/character_result_page.dart +++ b/lib/ui/character_result_page.dart @@ -27,68 +27,70 @@ class CharacterResultPage extends StatelessWidget { ), ), ), - body: Column( - children: [ - Container( - padding: const EdgeInsets.all(24.0), - child: Container( - height: 300, - width: 300, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(16), - boxShadow: [ - BoxShadow( - color: Colors.black.withValues(alpha: 0.1), - spreadRadius: 0, - blurRadius: 10, - offset: const Offset(0, 4), + body: SingleChildScrollView( + child: Column( + children: [ + Container( + padding: const EdgeInsets.all(24.0), + child: Container( + height: 300, + width: 300, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(16), + boxShadow: [ + BoxShadow( + color: Colors.black.withValues(alpha: 0.1), + spreadRadius: 0, + blurRadius: 10, + offset: const Offset(0, 4), + ), + ], + ), + child: ClipRRect( + borderRadius: BorderRadius.circular(16), + child: Image.memory( + Uri.parse(image).data!.contentAsBytes(), + fit: BoxFit.cover, ), - ], - ), - child: ClipRRect( - borderRadius: BorderRadius.circular(16), - child: Image.memory( - Uri.parse(image).data!.contentAsBytes(), - fit: BoxFit.cover, ), ), ), - ), - Padding( - padding: const EdgeInsets.all(24.0), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - '生成された説明', - style: textTheme.titleMedium?.copyWith( - color: colorScheme.primary, - fontWeight: FontWeight.bold, - ), - ), - const SizedBox(height: 16), - Card( - elevation: 0, - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(16), - side: BorderSide( - color: colorScheme.outline.withOpacity(0.1), + Padding( + padding: const EdgeInsets.all(24.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + '生成された説明', + style: textTheme.titleMedium?.copyWith( + color: colorScheme.primary, + fontWeight: FontWeight.bold, ), ), - child: Padding( - padding: const EdgeInsets.all(16.0), - child: Text( - description, - style: textTheme.bodyLarge?.copyWith( - height: 1.6, + const SizedBox(height: 16), + Card( + elevation: 0, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(16), + side: BorderSide( + color: colorScheme.outline.withOpacity(0.1), + ), + ), + child: Padding( + padding: const EdgeInsets.all(16.0), + child: Text( + description, + style: textTheme.bodyLarge?.copyWith( + height: 1.6, + ), ), ), ), - ), - ], + ], + ), ), - ), - ], + ], + ), ), ); } From 13af756ceca8c1abef4f4ed3ba91903f1afae06b Mon Sep 17 00:00:00 2001 From: cobo <39579511+nzmgfdprs@users.noreply.github.com> Date: Fri, 31 Jan 2025 20:53:48 +0900 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=E5=85=A5=E5=8A=9B=E7=94=BB?= =?UTF-8?q?=E9=9D=A2=E3=81=AE=E5=88=9D=E6=9C=9F=E5=80=A4=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/character_input_page.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ui/character_input_page.dart b/lib/ui/character_input_page.dart index 5b2c282..b8ebdf6 100644 --- a/lib/ui/character_input_page.dart +++ b/lib/ui/character_input_page.dart @@ -16,11 +16,10 @@ class _CharacterInputPageState extends ConsumerState { final _formKey = GlobalKey(); final _nameController = TextEditingController(text: 'ペンペン'); final _personalityController = TextEditingController( - text: '好奇心旺盛で、仲間思い。寒さに強く、泳ぎが得意。少し臆病だけど、仲間と一緒なら勇気を出せる。', + text: '好奇心旺盛で、仲間思い。', ); final _storyController = TextEditingController( - text: - '南極の小さなコロニーで暮らすペンギン。毎日、仲間と一緒に魚を探して泳いだり遊んだりして過ごしている。将来は、もっと遠くの海まで探検してみたい。', + text: '南極の小さなコロニーで暮らすペンギン。', ); int _age = 3; String _gender = '未選択';