From c39cc6db7ee2bce8ece7a2b5a5b759ebef5b24d8 Mon Sep 17 00:00:00 2001 From: Cheryl Date: Thu, 18 Nov 2021 08:45:50 -0800 Subject: [PATCH] Upgrade to 2.0.20 --- CHANGELOG.md | 3 +++ lib/src/widgets/image.dart | 16 ++++++++-------- pubspec.yaml | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1d008b2..6ee25198 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [2.0.20] +* Improved UX/UI of Image widget. + ## [2.0.19] * When uploading a video, applying indicator. diff --git a/lib/src/widgets/image.dart b/lib/src/widgets/image.dart index 49b97c10..eb07e8db 100644 --- a/lib/src/widgets/image.dart +++ b/lib/src/widgets/image.dart @@ -10,7 +10,7 @@ class ImageTapWrapper extends StatelessWidget { final ImageProvider? imageProvider; -@override + @override Widget build(BuildContext context) { return Scaffold( body: Container( @@ -24,14 +24,14 @@ class ImageTapWrapper extends StatelessWidget { loadingBuilder: (context, event) { return Container( color: Colors.black, - child: Center( + child: const Center( child: CircularProgressIndicator(), ), ); }, ), Positioned( - right: 10.0, + right: 10, top: MediaQuery.of(context).padding.top + 10.0, child: InkWell( onTap: () { @@ -42,9 +42,9 @@ class ImageTapWrapper extends StatelessWidget { Opacity( opacity: 0.2, child: Container( - height: 30.0, - width: 30.0, - decoration: BoxDecoration( + height: 30, + width: 30, + decoration: const BoxDecoration( shape: BoxShape.circle, color: Colors.black87, ), @@ -55,8 +55,8 @@ class ImageTapWrapper extends StatelessWidget { bottom: 0, left: 0, right: 0, - child: Icon(Icons.close, - color: Colors.grey[400], size: 28.0), + child: + Icon(Icons.close, color: Colors.grey[400], size: 28), ) ], ), diff --git a/pubspec.yaml b/pubspec.yaml index 75a90c92..c158fcdc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) -version: 2.0.19 +version: 2.0.20 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill