Skip to content

Commit b422871

Browse files
fixed scroll
1 parent 213d50b commit b422871

File tree

2 files changed

+50
-47
lines changed

2 files changed

+50
-47
lines changed

lib/views/tasks_related_views/tasks_table_view/tasks_table_view.dart

Lines changed: 49 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -43,56 +43,59 @@ class TaskTable extends StatelessWidget {
4343

4444
@override
4545
Widget build(BuildContext context) {
46-
return Column(
47-
children: [
48-
if (ResponsiveBreakpoints.of(context).largerOrEqualTo(DESKTOP))
49-
const FilterDesktopSection(),
50-
if (ResponsiveBreakpoints.of(context).largerOrEqualTo(DESKTOP))
51-
const Divider(),
52-
Stack(
53-
children: [
54-
Padding(
55-
padding:
56-
ResponsiveBreakpoints.of(context).largerThan('HIDE_DRAWER')
57-
? const EdgeInsets.only(
58-
top: 15, bottom: 100, left: 20, right: 20)
59-
: const EdgeInsets.only(top: 15, bottom: 100),
60-
child: ResponsiveBreakpoints.of(context).largerOrEqualTo(DESKTOP)
61-
? SizedBox(
62-
width: MediaQuery.of(context).size.width -
63-
((ResponsiveBreakpoints.of(context)
64-
.largerThan('HIDE_DRAWER'))
65-
? 340
66-
: 0),
67-
child: const Column(
46+
return SingleChildScrollView(
47+
child: Column(
48+
children: [
49+
if (ResponsiveBreakpoints.of(context).largerOrEqualTo(DESKTOP))
50+
const FilterDesktopSection(),
51+
if (ResponsiveBreakpoints.of(context).largerOrEqualTo(DESKTOP))
52+
const Divider(),
53+
Stack(
54+
children: [
55+
Padding(
56+
padding:
57+
ResponsiveBreakpoints.of(context).largerThan('HIDE_DRAWER')
58+
? const EdgeInsets.only(
59+
top: 15, bottom: 100, left: 20, right: 20)
60+
: const EdgeInsets.only(top: 15, bottom: 100),
61+
child: ResponsiveBreakpoints.of(context)
62+
.largerOrEqualTo(DESKTOP)
63+
? SizedBox(
64+
width: MediaQuery.of(context).size.width -
65+
((ResponsiveBreakpoints.of(context)
66+
.largerThan('HIDE_DRAWER'))
67+
? 340
68+
: 0),
69+
child: const Column(
70+
children: [
71+
EmptyTable(),
72+
Row(
73+
crossAxisAlignment: CrossAxisAlignment.start,
74+
children: [
75+
TaskTypeSubtable(TaskStatusChoices.notAssigned,
76+
wrapWithExpanded: true),
77+
TaskTypeSubtable(TaskStatusChoices.inProgress,
78+
wrapWithExpanded: true),
79+
TaskTypeSubtable(TaskStatusChoices.closed,
80+
wrapWithExpanded: true),
81+
],
82+
),
83+
],
84+
),
85+
)
86+
: const Column(
6887
children: [
88+
TaskTypeSubtable(TaskStatusChoices.notAssigned),
89+
TaskTypeSubtable(TaskStatusChoices.inProgress),
90+
TaskTypeSubtable(TaskStatusChoices.closed),
6991
EmptyTable(),
70-
Row(
71-
crossAxisAlignment: CrossAxisAlignment.start,
72-
children: [
73-
TaskTypeSubtable(TaskStatusChoices.notAssigned,
74-
wrapWithExpanded: true),
75-
TaskTypeSubtable(TaskStatusChoices.inProgress,
76-
wrapWithExpanded: true),
77-
TaskTypeSubtable(TaskStatusChoices.closed,
78-
wrapWithExpanded: true),
79-
],
80-
),
8192
],
8293
),
83-
)
84-
: const Column(
85-
children: [
86-
TaskTypeSubtable(TaskStatusChoices.notAssigned),
87-
TaskTypeSubtable(TaskStatusChoices.inProgress),
88-
TaskTypeSubtable(TaskStatusChoices.closed),
89-
EmptyTable(),
90-
],
91-
),
92-
),
93-
],
94-
),
95-
],
94+
),
95+
],
96+
),
97+
],
98+
),
9699
);
97100
}
98101
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 1.0.5+5
19+
version: 1.0.6+6
2020

2121
environment:
2222
sdk: ">=3.1.4 <4.0.0"

0 commit comments

Comments
 (0)