Skip to content

Commit f9528d4

Browse files
authored
Merge pull request #6 from gabriel-oliveira800/fix/update_depencies
Fix/update depencies
2 parents fc58622 + 132198b commit f9528d4

File tree

6 files changed

+156
-74
lines changed

6 files changed

+156
-74
lines changed

CHANGELOG.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
1+
## [1.4.2] - 2021-10-25
2+
3+
- Feat: update dependencies
4+
15
## [1.4.0] - 2021-10-13
6+
27
- Feat: add form field
8+
39
## [1.3.0] - 2021-02-23
4-
- Feat: add export file
5-
- Feat: add analyzer in project
6-
- Feat: created new components
10+
11+
- Feat: add export file
12+
- Feat: add analyzer in project
13+
- Feat: created new components
14+
715
## [1.2.1] - 2021-02-23
16+
817
- Fix: homepage url
18+
919
## [1.2.0] - 2021-02-22
20+
1021
- HtmlWidget
22+
1123
## [1.1.0] - 2020-12-04
24+
1225
- AlwaysDisabledFocusNode
26+
1327
## [1.0.0] - 2020-12-04
28+
1429
Hello World! This version contains:
30+
1531
- HorizontalSpacing
1632
- VerticalSpacing

lib/horizontal_spacing.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ import 'package:flutter/material.dart';
88
class HorizontalSpacing extends StatelessWidget {
99
final double width;
1010

11-
const HorizontalSpacing({
12-
Key? key,
13-
required this.width,
14-
}) : assert(width >= 0),
11+
const HorizontalSpacing(this.width, {Key? key})
12+
: assert(width >= 0),
1513
super(key: key);
1614

1715
@override

lib/html_widget.dart

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import 'package:flutter/material.dart';
22
import 'package:flutter_html/flutter_html.dart';
3-
import 'package:flutter_html/style.dart';
43
import 'package:url_launcher/url_launcher.dart';
54

65
class HtmlWidget extends StatelessWidget {
@@ -24,13 +23,15 @@ class HtmlWidget extends StatelessWidget {
2423
fontWeight: textStyle.fontWeight,
2524
)
2625
},
27-
onLinkTap: _onLinkTap,
28-
);
29-
}
26+
onLinkTap: (url, context, attributes, element) async {
27+
if (url == null) {
28+
return;
29+
}
3030

31-
void _onLinkTap(String url) async {
32-
if (await canLaunch(url)) {
33-
await launch(url);
34-
}
31+
if (await canLaunch(url)) {
32+
await launch(url);
33+
}
34+
},
35+
);
3536
}
3637
}

lib/vertical_spacing.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ import 'package:flutter/material.dart';
77
/// It is very useful to set a margin between widgets in a Column.
88
class VerticalSpacing extends StatelessWidget {
99
final double height;
10-
const VerticalSpacing({
11-
Key? key,
12-
required this.height,
13-
}) : assert(height >= 0),
10+
const VerticalSpacing(this.height, {Key? key})
11+
: assert(height >= 0),
1412
super(key: key);
1513

1614
@override

0 commit comments

Comments
 (0)