Upgrade to 2.0.20

pull/471/head
Cheryl 3 years ago
parent f47301745c
commit c39cc6db7e
  1. 3
      CHANGELOG.md
  2. 16
      lib/src/widgets/image.dart
  3. 2
      pubspec.yaml

@ -1,3 +1,6 @@
## [2.0.20]
* Improved UX/UI of Image widget.
## [2.0.19] ## [2.0.19]
* When uploading a video, applying indicator. * When uploading a video, applying indicator.

@ -10,7 +10,7 @@ class ImageTapWrapper extends StatelessWidget {
final ImageProvider? imageProvider; final ImageProvider? imageProvider;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
body: Container( body: Container(
@ -24,14 +24,14 @@ class ImageTapWrapper extends StatelessWidget {
loadingBuilder: (context, event) { loadingBuilder: (context, event) {
return Container( return Container(
color: Colors.black, color: Colors.black,
child: Center( child: const Center(
child: CircularProgressIndicator(), child: CircularProgressIndicator(),
), ),
); );
}, },
), ),
Positioned( Positioned(
right: 10.0, right: 10,
top: MediaQuery.of(context).padding.top + 10.0, top: MediaQuery.of(context).padding.top + 10.0,
child: InkWell( child: InkWell(
onTap: () { onTap: () {
@ -42,9 +42,9 @@ class ImageTapWrapper extends StatelessWidget {
Opacity( Opacity(
opacity: 0.2, opacity: 0.2,
child: Container( child: Container(
height: 30.0, height: 30,
width: 30.0, width: 30,
decoration: BoxDecoration( decoration: const BoxDecoration(
shape: BoxShape.circle, shape: BoxShape.circle,
color: Colors.black87, color: Colors.black87,
), ),
@ -55,8 +55,8 @@ class ImageTapWrapper extends StatelessWidget {
bottom: 0, bottom: 0,
left: 0, left: 0,
right: 0, right: 0,
child: Icon(Icons.close, child:
color: Colors.grey[400], size: 28.0), Icon(Icons.close, color: Colors.grey[400], size: 28),
) )
], ],
), ),

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 2.0.19 version: 2.0.20
#author: bulletjournal #author: bulletjournal
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save