Skip to content

Commit c39cc6d

Browse files
Upgrade to 2.0.20
1 parent f473017 commit c39cc6d

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [2.0.20]
2+
* Improved UX/UI of Image widget.
3+
14
## [2.0.19]
25
* When uploading a video, applying indicator.
36

lib/src/widgets/image.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ImageTapWrapper extends StatelessWidget {
1010

1111
final ImageProvider? imageProvider;
1212

13-
@override
13+
@override
1414
Widget build(BuildContext context) {
1515
return Scaffold(
1616
body: Container(
@@ -24,14 +24,14 @@ class ImageTapWrapper extends StatelessWidget {
2424
loadingBuilder: (context, event) {
2525
return Container(
2626
color: Colors.black,
27-
child: Center(
27+
child: const Center(
2828
child: CircularProgressIndicator(),
2929
),
3030
);
3131
},
3232
),
3333
Positioned(
34-
right: 10.0,
34+
right: 10,
3535
top: MediaQuery.of(context).padding.top + 10.0,
3636
child: InkWell(
3737
onTap: () {
@@ -42,9 +42,9 @@ class ImageTapWrapper extends StatelessWidget {
4242
Opacity(
4343
opacity: 0.2,
4444
child: Container(
45-
height: 30.0,
46-
width: 30.0,
47-
decoration: BoxDecoration(
45+
height: 30,
46+
width: 30,
47+
decoration: const BoxDecoration(
4848
shape: BoxShape.circle,
4949
color: Colors.black87,
5050
),
@@ -55,8 +55,8 @@ class ImageTapWrapper extends StatelessWidget {
5555
bottom: 0,
5656
left: 0,
5757
right: 0,
58-
child: Icon(Icons.close,
59-
color: Colors.grey[400], size: 28.0),
58+
child:
59+
Icon(Icons.close, color: Colors.grey[400], size: 28),
6060
)
6161
],
6262
),

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_quill
22
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
3-
version: 2.0.19
3+
version: 2.0.20
44
#author: bulletjournal
55
homepage: https://bulletjournal.us/home/index.html
66
repository: https://github.com/singerdmx/flutter-quill

0 commit comments

Comments
 (0)