Skip to content

Commit df183d0

Browse files
author
afjal1
committed
Fixed Render Issue in Filter Drawer
1 parent 5a3288e commit df183d0

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

lib/drawer/filter_drawer.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ class _FilterDrawerState extends State<FilterDrawer> {
123123
border: Border.all(color: Colors.grey.shade300),
124124
),
125125
child: ListTile(
126+
contentPadding: EdgeInsets.only(
127+
left: 8,
128+
),
126129
title: RichText(
127130
key: statusKey,
128131
maxLines: 2,

lib/widgets/project_filter.dart

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ProjectsColumn extends StatelessWidget {
5050
Padding(
5151
padding: const EdgeInsets.all(10.0),
5252
child: Row(
53-
mainAxisAlignment: MainAxisAlignment.center,
53+
mainAxisAlignment: MainAxisAlignment.start,
5454
crossAxisAlignment: CrossAxisAlignment.center,
5555
children: [
5656
Text(
@@ -63,7 +63,6 @@ class ProjectsColumn extends StatelessWidget {
6363
),
6464
),
6565
SizedBox(
66-
width: 40.w,
6766
child: SingleChildScrollView(
6867
scrollDirection: Axis.horizontal,
6968
child: Row(
@@ -145,7 +144,7 @@ class ProjectTile extends StatelessWidget {
145144
var callback = inheritedProjects.callback;
146145

147146
var title = Row(
148-
mainAxisAlignment: MainAxisAlignment.spaceBetween,
147+
mainAxisAlignment: MainAxisAlignment.start,
149148
children: [
150149
Flexible(
151150
child: Text(project,
@@ -179,22 +178,19 @@ class ProjectTile extends StatelessWidget {
179178
? GestureDetector(
180179
onTap: () => callback(project),
181180
child: Row(
181+
mainAxisAlignment: MainAxisAlignment.start,
182182
children: [
183183
radio,
184-
SizedBox(
185-
width: 45.w,
186-
child: Text(project,
187-
maxLines: 3,
188-
style: GoogleFonts.poppins(
189-
color: AppSettings.isDarkMode
190-
? Colors.white
191-
: Colors.black)),
192-
),
193-
const SizedBox(
194-
width: 5,
195-
),
184+
Text(project,
185+
maxLines: 3,
186+
style: GoogleFonts.poppins(
187+
color: AppSettings.isDarkMode
188+
? Colors.white
189+
: Colors.black)),
190+
const Spacer(),
196191
Container(
197-
padding: const EdgeInsets.all(4),
192+
padding: const EdgeInsets.symmetric(horizontal: 4),
193+
margin: const EdgeInsets.only(right: 10),
198194
decoration: BoxDecoration(
199195
color: (AppSettings.isDarkMode
200196
? Colors.white

0 commit comments

Comments
 (0)