Skip to content

Commit 49017c7

Browse files
author
Ashutosh Kumar Singh
committed
noteworty projects ui fixes
1 parent 06d29cd commit 49017c7

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

lib/widgets/other_projects.dart

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ class _OtherProjectsState extends State<OtherProjects> {
8484
scrollDirection: Axis.horizontal,
8585
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
8686
crossAxisCount: 2,
87-
childAspectRatio: CommonFunction.isApp(context) ? .7 : .6,
87+
childAspectRatio: CommonFunction.isApp(context) ? .75 : .6,
8888
),
8989
itemBuilder: (context, index) {
9090
return Padding(
9191
padding: EdgeInsets.only(
9292
right: CommonFunction.isApp(context) ? 16 : 32,
93-
bottom: CommonFunction.isApp(context) ? 48 : 32,
93+
bottom: CommonFunction.isApp(context) ? 24 : 32,
9494
),
9595
child: Card(
9696
color: Constants.lightNavy,
@@ -109,20 +109,16 @@ class _OtherProjectsState extends State<OtherProjects> {
109109
height: 48,
110110
),
111111
InkWell(
112-
onTap: _link[index] != null &&
113-
_link[index].trim().isNotEmpty
112+
onTap: _link[index] != null && _link[index].trim().isNotEmpty
114113
? () {
115-
CommonFunction.openFromUrl(
116-
_link[index]);
114+
CommonFunction.openFromUrl(_link[index]);
117115
}
118116
: null,
119117
hoverColor: Colors.transparent,
120118
child: Image.asset(
121119
'asset/github_dark.png',
122-
width:
123-
CommonFunction.isApp(context) ? 24 : 16,
124-
height:
125-
CommonFunction.isApp(context) ? 24 : 16,
120+
width: CommonFunction.isApp(context) ? 24 : 16,
121+
height: CommonFunction.isApp(context) ? 24 : 16,
126122
),
127123
),
128124
],

0 commit comments

Comments
 (0)