forked from firka/firka
fix: made whole homepage scrollable
This commit is contained in:
@@ -244,14 +244,7 @@ class _HomeMainScreen extends FirkaState<HomeMainScreen> {
|
||||
.length;
|
||||
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(left: 20.0, top: 24.0, right: 20.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
WelcomeWidget(widget.data.l10n, now, student!, lessons!),
|
||||
SizedBox(height: 48),
|
||||
LessonSlider(lessonTestMap, testsTomorrow),
|
||||
Expanded(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 20.0),
|
||||
child: RefreshIndicator(
|
||||
onRefresh: () => fetchData(),
|
||||
notificationPredicate: (ScrollNotification notification) {
|
||||
@@ -260,7 +253,12 @@ class _HomeMainScreen extends FirkaState<HomeMainScreen> {
|
||||
triggerMode: RefreshIndicatorTriggerMode.onEdge,
|
||||
displacement: 0,
|
||||
child: ListView(
|
||||
children: noticeBoardWidgets
|
||||
children: [
|
||||
SizedBox(height: 24),
|
||||
WelcomeWidget(widget.data.l10n, now, student!, lessons!),
|
||||
SizedBox(height: 48),
|
||||
LessonSlider(lessonTestMap, testsTomorrow),
|
||||
...noticeBoardWidgets
|
||||
.groupList((e) => e.$2)
|
||||
.entries
|
||||
.map(
|
||||
@@ -278,13 +276,10 @@ class _HomeMainScreen extends FirkaState<HomeMainScreen> {
|
||||
SizedBox(height: 10),
|
||||
],
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
} else {
|
||||
return Scaffold(
|
||||
|
||||
Reference in New Issue
Block a user