Add filepicker +update size image section

This commit is contained in:
Thomas Fransolet 2021-12-23 11:53:36 +01:00
parent f9405eb842
commit 6b2c74424a
3 changed files with 31 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class _ImageInputContainerState extends State<ImageInputContainer> {
child: Text(widget.label, style: TextStyle(fontSize: 25, fontWeight: FontWeight.w300))
),
Padding(
padding: EdgeInsets.only(left: widget.isSmall ? 15 : 50, top: 10, bottom: 10),
padding: EdgeInsets.only(left: widget.isSmall ? 15 : 70, top: 10, bottom: 10),
child: Container(
width: size.width *0.08,
child: InkWell(
@ -85,7 +85,7 @@ class _ImageInputContainerState extends State<ImageInputContainer> {
builder: (context, AsyncSnapshot<dynamic> snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
return Transform.scale(
scale: isSmall ? size.aspectRatio * 0.5: size.aspectRatio,
scale: isSmall ? size.aspectRatio * 0.5: size.aspectRatio * 0.9,
child: AspectRatio(
aspectRatio: 4/4,
child: Container(

View File

@ -106,6 +106,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
ffi:
dependency: transitive
description:
name: ffi
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.2"
file_picker:
dependency: "direct main"
description:
name: file_picker
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.0"
flare_flutter:
dependency: "direct main"
description:
@ -125,6 +139,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.0"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.5"
flutter_test:
dependency: "direct dev"
description: flutter
@ -219,6 +240,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.11.1"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.2"
pointycastle:
dependency: transitive
description:

View File

@ -33,6 +33,7 @@ dependencies:
convert: ^3.0.0
collection: any
#filepicker_windows: ^2.0.0
file_picker: ^4.3.0
flare_flutter: ^3.0.1
#dart_vlc: ^0.0.6
video_player: ^2.1.1