Skip to content

Commit

Permalink
🐛 (Full Prayer Timetable) Fix autoscroll issue #213
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Dec 11, 2023
1 parent 4df7824 commit 3d245ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/views/prayer_full_table.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class PrayerFullTable extends StatelessWidget {
innerController.animateTo(
// according to the docs, each data row have height of [kMinInteractiveDimension],
// so we just multiply with the day to get the offset
kMinInteractiveDimension * _todayIndex,
kMinInteractiveDimension * (_todayIndex - 1),
duration: Durations.long4,
curve: Curves.easeInOut,
);
Expand All @@ -56,7 +56,6 @@ class PrayerFullTable extends StatelessWidget {
SliverAppBar(
foregroundColor: Colors.white,
backgroundColor: Theme.of(context).colorScheme.primary,
floating: true,
pinned: true,
expandedHeight: 150,
flexibleSpace: FlexibleSpaceBar(
Expand Down

0 comments on commit 3d245ef

Please sign in to comment.