From 6b2c74424a26b2c2901e52717aed4a61f82fe7f1 Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Thu, 23 Dec 2021 11:53:36 +0100 Subject: [PATCH] Add filepicker +update size image section --- lib/Components/image_input_container.dart | 4 ++-- pubspec.lock | 28 +++++++++++++++++++++++ pubspec.yaml | 1 + 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/lib/Components/image_input_container.dart b/lib/Components/image_input_container.dart index 15fe508..c081571 100644 --- a/lib/Components/image_input_container.dart +++ b/lib/Components/image_input_container.dart @@ -48,7 +48,7 @@ class _ImageInputContainerState extends State { 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 { builder: (context, AsyncSnapshot 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( diff --git a/pubspec.lock b/pubspec.lock index 97813ad..bb18f7c 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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: diff --git a/pubspec.yaml b/pubspec.yaml index c108259..196c2c4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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