Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0bcdf2a

Browse files
committedAug 24, 2020
changed column to wrap, and title to headline6
1 parent 32e1404 commit 0bcdf2a

File tree

2 files changed

+28
-22
lines changed

2 files changed

+28
-22
lines changed
 

‎lib/widgets/project_widget.dart

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
import 'package:adityagurjar/models/project_model.dart';
22
import 'package:flutter/material.dart';
33
import 'dart:html' as html;
4+
45
class ProjectWidget extends StatelessWidget {
56
final Project _project;
67
final double _bottomPadding;
7-
ProjectWidget(this._project,this._bottomPadding );
8+
ProjectWidget(this._project, this._bottomPadding);
89

910
@override
1011
Widget build(BuildContext context) {
1112
final width = MediaQuery.of(context).size.width;
1213
final height = MediaQuery.of(context).size.height;
1314
return Card(
14-
margin: EdgeInsets.fromLTRB(16.0,16.0,16.0,_bottomPadding),
15-
child:InkWell(
16-
onTap: onProjectClick,
17-
child: Padding(
15+
margin: EdgeInsets.fromLTRB(16.0, 16.0, 16.0, _bottomPadding),
16+
child: InkWell(
17+
onTap: onProjectClick,
18+
child: Padding(
1819
padding: const EdgeInsets.all(8.0),
1920
child: Row(
2021
crossAxisAlignment: CrossAxisAlignment.start,
@@ -25,7 +26,7 @@ class ProjectWidget extends StatelessWidget {
2526
child: Image.asset(
2627
_project.image,
2728
width: width * .25,
28-
height: width*.25,
29+
height: width * .25,
2930
)),
3031
Expanded(
3132
flex: 3,
@@ -35,13 +36,13 @@ class ProjectWidget extends StatelessWidget {
3536
flex: 60,
3637
child: Container(
3738
padding: EdgeInsets.only(top: 8.0),
38-
child: Column(
39-
mainAxisSize: MainAxisSize.max,
40-
mainAxisAlignment: MainAxisAlignment.start,
41-
crossAxisAlignment: CrossAxisAlignment.start,
39+
child: Wrap(
40+
direction: Axis.horizontal,
4241
children: <Widget>[
43-
Text(_project.name,
44-
style: Theme.of(context).textTheme.title),
42+
Text(
43+
_project.name,
44+
style: Theme.of(context).textTheme.headline6,
45+
),
4546
SizedBox(
4647
height: height * .01,
4748
),
@@ -61,9 +62,7 @@ class ProjectWidget extends StatelessWidget {
6162
);
6263
}
6364

64-
void onProjectClick(){
65-
if(_project.link!=null)
66-
html.window.open(_project.link, 'adityadroid');
67-
}
68-
65+
void onProjectClick() {
66+
if (_project.link != null) html.window.open(_project.link, 'adityadroid');
67+
}
6968
}

‎pubspec.lock

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ packages:
88
url: "https://pub.dartlang.org"
99
source: hosted
1010
version: "2.3.0"
11+
characters:
12+
dependency: transitive
13+
description:
14+
name: characters
15+
url: "https://pub.dartlang.org"
16+
source: hosted
17+
version: "1.1.0-nullsafety.2"
1118
charcode:
1219
dependency: transitive
1320
description:
@@ -21,7 +28,7 @@ packages:
2128
name: collection
2229
url: "https://pub.dartlang.org"
2330
source: hosted
24-
version: "1.14.11"
31+
version: "1.15.0-nullsafety.2"
2532
flutter:
2633
dependency: "direct main"
2734
description: flutter
@@ -47,7 +54,7 @@ packages:
4754
name: meta
4855
url: "https://pub.dartlang.org"
4956
source: hosted
50-
version: "1.1.8"
57+
version: "1.3.0-nullsafety.2"
5158
path:
5259
dependency: transitive
5360
description:
@@ -94,13 +101,13 @@ packages:
94101
name: typed_data
95102
url: "https://pub.dartlang.org"
96103
source: hosted
97-
version: "1.1.6"
104+
version: "1.3.0-nullsafety.2"
98105
vector_math:
99106
dependency: transitive
100107
description:
101108
name: vector_math
102109
url: "https://pub.dartlang.org"
103110
source: hosted
104-
version: "2.0.8"
111+
version: "2.1.0-nullsafety.2"
105112
sdks:
106-
dart: ">=2.2.2 <3.0.0"
113+
dart: ">=2.10.0-0.0.dev <2.10.0"

0 commit comments

Comments
 (0)
Please sign in to comment.