Skip to content

Commit 0dc6f29

Browse files
committed
feat: ホーム画面のリマインダー設定ボタンを追加し、UIを改善
1 parent 742096b commit 0dc6f29

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

lib/screens/home_screen_new.dart

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import 'package:flutter/material.dart';
32
import '../widgets/next_abc_contest_widget.dart';
43
import '../widgets/shared/custom_sliver_app_bar.dart';
@@ -12,30 +11,35 @@ class NewHomeScreen extends StatelessWidget {
1211
return Scaffold(
1312
body: CustomScrollView(
1413
slivers: [
15-
CustomSliverAppBar(
14+
const CustomSliverAppBar(
1615
isMainView: true,
17-
title: const Text('ホーム'),
18-
actions: [
19-
IconButton(
20-
icon: const Icon(Icons.notifications_active_outlined),
21-
tooltip: 'リマインダー設定',
22-
onPressed: () {
23-
Navigator.push(
24-
context,
25-
MaterialPageRoute(builder: (context) => const ReminderSettingsScreen()),
26-
);
27-
},
28-
),
29-
],
16+
title: Text('ホーム'),
3017
),
3118
SliverPadding(
3219
padding: const EdgeInsets.all(16.0),
3320
sliver: SliverToBoxAdapter(
3421
child: Column(
35-
crossAxisAlignment: CrossAxisAlignment.start,
36-
children: const [
37-
NextABCContestWidget(),
38-
SizedBox(height: 16),
22+
crossAxisAlignment: CrossAxisAlignment.stretch,
23+
children: [
24+
const NextABCContestWidget(),
25+
const SizedBox(height: 24),
26+
ElevatedButton.icon(
27+
icon: const Icon(Icons.notifications_active_outlined),
28+
label: const Text('リマインダー設定'),
29+
style: ElevatedButton.styleFrom(
30+
padding: const EdgeInsets.symmetric(vertical: 12.0),
31+
textStyle: const TextStyle(
32+
fontSize: 16,
33+
),
34+
),
35+
onPressed: () {
36+
Navigator.push(
37+
context,
38+
MaterialPageRoute(builder: (context) => const ReminderSettingsScreen()),
39+
);
40+
},
41+
),
42+
const SizedBox(height: 16),
3943
// 他のウィジェットをここに追加可能
4044
],
4145
),

0 commit comments

Comments
 (0)