1
-
2
1
import 'package:flutter/material.dart' ;
3
2
import '../widgets/next_abc_contest_widget.dart' ;
4
3
import '../widgets/shared/custom_sliver_app_bar.dart' ;
@@ -12,30 +11,35 @@ class NewHomeScreen extends StatelessWidget {
12
11
return Scaffold (
13
12
body: CustomScrollView (
14
13
slivers: [
15
- CustomSliverAppBar (
14
+ const CustomSliverAppBar (
16
15
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 ('ホーム' ),
30
17
),
31
18
SliverPadding (
32
19
padding: const EdgeInsets .all (16.0 ),
33
20
sliver: SliverToBoxAdapter (
34
21
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 ),
39
43
// 他のウィジェットをここに追加可能
40
44
],
41
45
),
0 commit comments