From 77b3739fa0027712d1ea861c2fed0d215df0ea47 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 6 Dec 2023 15:01:22 +0100 Subject: [PATCH] fix: pass on style parameter to plain text input --- CHANGELOG.md | 6 +++- example/pubspec.lock | 28 +++++++++---------- .../input/input_types/input_plain_text.dart | 3 ++ pubspec.yaml | 4 +-- 4 files changed, 24 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41312bd..a24e789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -101,4 +101,8 @@ - Add enabled property to FlutterFormInputPlainText and FlutterFormInputDateTime ## 6.1.7 - November 1st 2023 -- pass on the show icon property to flutter form input date time widget \ No newline at end of file +- pass on the show icon property to flutter form input date time widget + +## 6.1.8 - December 6th 2023 +- Pass on the style property to the FlutterFormPlainText input widget +- Bump `flutter_input_library` to version 2.5.0 \ No newline at end of file diff --git a/example/pubspec.lock b/example/pubspec.lock index aef79b9..f475641 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.18.0" cupertino_icons: dependency: "direct main" description: @@ -68,7 +68,7 @@ packages: path: ".." relative: true source: path - version: "6.1.5" + version: "6.1.7" flutter_input_library: dependency: transitive description: @@ -140,10 +140,10 @@ packages: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" path: dependency: transitive description: @@ -177,10 +177,10 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.11.1" state_notifier: dependency: transitive description: @@ -193,10 +193,10 @@ packages: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: @@ -217,10 +217,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.6.1" vector_math: dependency: transitive description: @@ -233,10 +233,10 @@ packages: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "0.3.0" sdks: - dart: ">=3.1.0-185.0.dev <4.0.0" + dart: ">=3.2.0-194.0.dev <4.0.0" flutter: ">=3.0.0" diff --git a/lib/src/widgets/input/input_types/input_plain_text.dart b/lib/src/widgets/input/input_types/input_plain_text.dart index 605c7c0..e2acfc9 100644 --- a/lib/src/widgets/input/input_types/input_plain_text.dart +++ b/lib/src/widgets/input/input_types/input_plain_text.dart @@ -26,6 +26,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget { this.maxLength, this.keyboardType, this.enabled = true, + this.style, }) : super( key: key, controller: controller, @@ -41,6 +42,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget { final TextInputType? keyboardType; @override final bool enabled; + final TextStyle? style; @override Widget build(BuildContext context) { @@ -54,6 +56,7 @@ class FlutterFormInputPlainText extends FlutterFormInputWidget { ); return input.FlutterFormInputPlainText( + style: style, enabled: enabled, scrollPadding: scrollPadding ?? const EdgeInsets.all(20.0), initialValue: controller.value, diff --git a/pubspec.yaml b/pubspec.yaml index c3c5dde..3745193 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_form_wizard description: A new Flutter package project. -version: 6.1.7 +version: 6.1.8 homepage: https://github.com/Iconica-Development/flutter_form_wizard publish_to: none @@ -18,7 +18,7 @@ dependencies: flutter_input_library: git: url: https://github.com/Iconica-Development/flutter_input_library - ref: 2.4.0 + ref: 2.5.0 dev_dependencies: flutter_test: