@@ -95,27 +95,32 @@ class _HabitTodayListCardState extends State<HabitTodayListCard> {
9595 extraTargetValue: data.dailyGoalExtra),
9696 ));
9797
98- final body = ListTile (
99- isThreeLine: true ,
100- title: Text (data.name),
101- titleTextStyle: themeData.textTheme.titleLarge,
102- trailing: const Icon (null ),
103- subtitle: Column (
104- mainAxisSize: MainAxisSize .min,
105- children: [
106- ExpandedSection (
107- expand: _effectiveExpanded || widget.showProgessInfo == true ,
108- child: ListTile (
109- contentPadding: EdgeInsets .zero,
110- title: Text (data.progress.toStringAsFixed (2 )),
111- titleTextStyle: themeData.textTheme.titleLarge,
112- subtitle: LinearProgressIndicator (value: data.progress / 100 ),
98+ final body = MediaQuery .removePadding (
99+ context: context,
100+ removeLeft: true ,
101+ removeRight: true ,
102+ child: ListTile (
103+ isThreeLine: true ,
104+ title: Text (data.name),
105+ titleTextStyle: themeData.textTheme.titleLarge,
106+ trailing: const Icon (null ),
107+ subtitle: Column (
108+ mainAxisSize: MainAxisSize .min,
109+ children: [
110+ ExpandedSection (
111+ expand: _effectiveExpanded || widget.showProgessInfo == true ,
112+ child: ListTile (
113+ contentPadding: EdgeInsets .zero,
114+ title: Text (data.progress.toStringAsFixed (2 )),
115+ titleTextStyle: themeData.textTheme.titleLarge,
116+ subtitle: LinearProgressIndicator (value: data.progress / 100 ),
117+ ),
113118 ),
114- ),
115- SizedBox (
116- width : double .infinity ,
117- child : getKeepDaysText (data.duringFromStartDate.inDays, l10n)) ,
118- ] ,
119+ SizedBox (
120+ width : double .infinity,
121+ child : getKeepDaysText (data.duringFromStartDate.inDays, l10n)) ,
122+ ] ,
123+ ) ,
119124 ),
120125 );
121126
@@ -154,6 +159,9 @@ class _HabitTodayListCardState extends State<HabitTodayListCard> {
154159 children: [
155160 Expanded (
156161 child: SingleChildScrollView (
162+ physics: _effectiveExpanded
163+ ? null
164+ : const NeverScrollableScrollPhysics (),
157165 child: Column (children: [body, extra]),
158166 ),
159167 ),
0 commit comments