From fab03f5d037ee07955b211f764779b953df7d6ce Mon Sep 17 00:00:00 2001 From: VISHALGUPTA100803 <96491059+VISHALGUPTA100803@users.noreply.github.com> Date: Wed, 24 May 2023 20:42:40 +0530 Subject: [PATCH] issue: #183 changed uneven colours of input field --- .../input_fields/input_field_2.dart | 20 +-- .../input_fields/input_field_4.dart | 2 +- .../input_fields/input_field_5.dart | 11 +- .../text_areas/text_area_3.dart | 2 +- .../text_areas/ttext_area_4.dart | 2 +- linux/flutter/generated_plugin_registrant.cc | 4 + linux/flutter/generated_plugins.cmake | 1 + macos/Flutter/GeneratedPluginRegistrant.swift | 2 + pubspec.lock | 119 ++++++++++++++---- .../flutter/generated_plugin_registrant.cc | 3 + windows/flutter/generated_plugins.cmake | 1 + 11 files changed, 124 insertions(+), 43 deletions(-) diff --git a/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_2.dart b/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_2.dart index 0be6eb3..0ed6795 100644 --- a/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_2.dart +++ b/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_2.dart @@ -22,25 +22,25 @@ class InputField2 extends StatelessWidget { width: width - 20, child: Padding( padding: const EdgeInsets.fromLTRB(0, 5, 0, 5), - child: Container( - height: 50, - decoration: BoxDecoration( - border: Border.all(), - ), + // child: Container( + // height: 50, + // decoration: BoxDecoration( + // border: Border.all(), + // ), child: Padding( - padding: const EdgeInsets.fromLTRB(15, 0, 0, 0), + padding: const EdgeInsets.fromLTRB(0, 5, 0, 5), child: TextField( decoration: InputDecoration( hintText: hinttext, hintStyle: const TextStyle(color: Colors.grey, fontSize: 13), - border: InputBorder.none - // enabledBorder: OutlineInputBorder( - // borderSide: BorderSide(color: Colors.black, width: 1.0), + border: const OutlineInputBorder( + borderSide: BorderSide(color: Colors.grey, width: 2)), + ), ), ), - ), + //), ), ), ], diff --git a/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_4.dart b/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_4.dart index ec32f2a..a8ba61f 100644 --- a/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_4.dart +++ b/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_4.dart @@ -14,7 +14,7 @@ class InputField4 extends StatelessWidget { Text( label, style: const TextStyle( - color: Colors.grey, + //color: Colors.grey, fontWeight: FontWeight.w500, ), ), diff --git a/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_5.dart b/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_5.dart index a46e9f6..f7aa58c 100644 --- a/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_5.dart +++ b/lib/ui_components/input_fields/all_input_fields/input_fields/input_field_5.dart @@ -23,18 +23,19 @@ class InputField5 extends StatelessWidget { child: Container( decoration: BoxDecoration( border: Border.all( - color: Colors.red, + color: Colors.grey, width: 2, )), - child: Padding( - padding: const EdgeInsets.fromLTRB(15, 0, 0, 0), + // child: Padding( + // padding: const EdgeInsets.fromLTRB(15, 0, 0, 0), child: TextField( decoration: InputDecoration( hintText: hinttext, - border: InputBorder.none, + border: const OutlineInputBorder( + borderSide: BorderSide(color: Colors.grey)), ), ), - ), + // ), )), ), ], diff --git a/lib/ui_components/input_fields/all_input_fields/text_areas/text_area_3.dart b/lib/ui_components/input_fields/all_input_fields/text_areas/text_area_3.dart index c7605f9..ca8b5a4 100644 --- a/lib/ui_components/input_fields/all_input_fields/text_areas/text_area_3.dart +++ b/lib/ui_components/input_fields/all_input_fields/text_areas/text_area_3.dart @@ -14,7 +14,7 @@ class TextArea3 extends StatelessWidget { Text( label, style: const TextStyle( - color: Colors.grey, + //color: Colors.grey, fontWeight: FontWeight.w500, ), ), diff --git a/lib/ui_components/input_fields/all_input_fields/text_areas/ttext_area_4.dart b/lib/ui_components/input_fields/all_input_fields/text_areas/ttext_area_4.dart index 722fc5b..750a21a 100644 --- a/lib/ui_components/input_fields/all_input_fields/text_areas/ttext_area_4.dart +++ b/lib/ui_components/input_fields/all_input_fields/text_areas/ttext_area_4.dart @@ -22,7 +22,7 @@ class TextArea4 extends StatelessWidget { padding: const EdgeInsets.fromLTRB(0, 5, 0, 5), child: Container( decoration: BoxDecoration( - border: Border.all(color: Colors.red, width: 2), + border: Border.all( width: 2), ), child: Padding( padding: const EdgeInsets.fromLTRB(15, 0, 0, 0), diff --git a/linux/flutter/generated_plugin_registrant.cc b/linux/flutter/generated_plugin_registrant.cc index e71a16d..f6f23bf 100644 --- a/linux/flutter/generated_plugin_registrant.cc +++ b/linux/flutter/generated_plugin_registrant.cc @@ -6,6 +6,10 @@ #include "generated_plugin_registrant.h" +#include void fl_register_plugins(FlPluginRegistry* registry) { + g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = + fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); + url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); } diff --git a/linux/flutter/generated_plugins.cmake b/linux/flutter/generated_plugins.cmake index 2e1de87..f16b4c3 100644 --- a/linux/flutter/generated_plugins.cmake +++ b/linux/flutter/generated_plugins.cmake @@ -3,6 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST + url_launcher_linux ) list(APPEND FLUTTER_FFI_PLUGIN_LIST diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index e777c67..a1cdfd0 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -6,7 +6,9 @@ import FlutterMacOS import Foundation import path_provider_foundation +import url_launcher_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) + UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) } diff --git a/pubspec.lock b/pubspec.lock index 79107cf..c7bb926 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -13,10 +13,10 @@ packages: dependency: transitive description: name: async - sha256: bfe67ef28df125b7dddcea62755991f807aa39a2492a23e1550161692950bbe0 + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" url: "https://pub.dev" source: hosted - version: "2.10.0" + version: "2.11.0" boolean_selector: dependency: transitive description: @@ -29,10 +29,10 @@ packages: dependency: transitive description: name: characters - sha256: e6a326c8af69605aec75ed6c187d06b349707a27fbff8222ca9cc2cff167975c + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.3.0" clipboard: dependency: "direct main" description: @@ -53,10 +53,10 @@ packages: dependency: transitive description: name: collection - sha256: cfc915e6923fe5ce6e153b0723c753045de46de1b4d63771530504004a45fae0 + sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" url: "https://pub.dev" source: hosted - version: "1.17.0" + version: "1.17.1" crypto: dependency: transitive description: @@ -131,6 +131,11 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" google_fonts: dependency: "direct main" description: @@ -140,13 +145,13 @@ packages: source: hosted version: "4.0.3" http: - dependency: transitive + dependency: "direct main" description: name: http - sha256: "6aa2946395183537c8b880962d935877325d6a09a2867c3970c05c0fed6ac482" + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" url: "https://pub.dev" source: hosted - version: "0.13.5" + version: "0.13.6" http_parser: dependency: transitive description: @@ -167,10 +172,10 @@ packages: dependency: transitive description: name: js - sha256: "5528c2f391ededb7775ec1daa69e65a2d61276f7552de2b5f7b8d34ee9fd4ab7" + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 url: "https://pub.dev" source: hosted - version: "0.6.5" + version: "0.6.7" lints: dependency: transitive description: @@ -183,26 +188,26 @@ packages: dependency: transitive description: name: matcher - sha256: "16db949ceee371e9b99d22f88fa3a73c4e59fd0afed0bd25fc336eb76c198b72" + sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" url: "https://pub.dev" source: hosted - version: "0.12.13" + version: "0.12.15" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "586678f20e112219ed0f73215f01bcdf1d769824ba2ebae45ad918a9bfde9bdb" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.3.0" meta: dependency: transitive description: name: meta - sha256: "6c268b42ed578a53088d834796959e4a1814b5e9e164f147f580a386e5decf42" + sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.9.1" page_transition: dependency: transitive description: @@ -215,10 +220,10 @@ packages: dependency: transitive description: name: path - sha256: db9d4f58c908a4ba5953fcee2ae317c94889433e5024c27ce74a37f94267945b + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" url: "https://pub.dev" source: hosted - version: "1.8.2" + version: "1.8.3" path_provider: dependency: transitive description: @@ -300,10 +305,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" stack_trace: dependency: transitive description: @@ -356,10 +361,10 @@ packages: dependency: transitive description: name: test_api - sha256: ad540f65f92caa91bf21dfc8ffb8c589d6e4dc0c2267818b4cc2792857706206 + sha256: daadc9baabec998b062c9091525aa95786508b1c48e9c30f1f891b8bf6ff2e64 url: "https://pub.dev" source: hosted - version: "0.4.16" + version: "0.5.2" typed_data: dependency: transitive description: @@ -368,6 +373,70 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.1" + url_launcher: + dependency: "direct main" + description: + name: url_launcher + sha256: eb1e00ab44303d50dd487aab67ebc575456c146c6af44422f9c13889984c00f3 + url: "https://pub.dev" + source: hosted + version: "6.1.11" + url_launcher_android: + dependency: transitive + description: + name: url_launcher_android + sha256: "1a5848f598acc5b7d8f7c18b8cb834ab667e59a13edc3c93e9d09cf38cc6bc87" + url: "https://pub.dev" + source: hosted + version: "6.0.34" + url_launcher_ios: + dependency: transitive + description: + name: url_launcher_ios + sha256: "9af7ea73259886b92199f9e42c116072f05ff9bea2dcb339ab935dfc957392c2" + url: "https://pub.dev" + source: hosted + version: "6.1.4" + url_launcher_linux: + dependency: transitive + description: + name: url_launcher_linux + sha256: "207f4ddda99b95b4d4868320a352d374b0b7e05eefad95a4a26f57da413443f5" + url: "https://pub.dev" + source: hosted + version: "3.0.5" + url_launcher_macos: + dependency: transitive + description: + name: url_launcher_macos + sha256: "91ee3e75ea9dadf38036200c5d3743518f4a5eb77a8d13fda1ee5764373f185e" + url: "https://pub.dev" + source: hosted + version: "3.0.5" + url_launcher_platform_interface: + dependency: transitive + description: + name: url_launcher_platform_interface + sha256: "6c9ca697a5ae218ce56cece69d46128169a58aa8653c1b01d26fcd4aad8c4370" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + url_launcher_web: + dependency: transitive + description: + name: url_launcher_web + sha256: "6bb1e5d7fe53daf02a8fee85352432a40b1f868a81880e99ec7440113d5cfcab" + url: "https://pub.dev" + source: hosted + version: "2.0.17" + url_launcher_windows: + dependency: transitive + description: + name: url_launcher_windows + sha256: "254708f17f7c20a9c8c471f67d86d76d4a3f9c1591aad1e15292008aceb82771" + url: "https://pub.dev" + source: hosted + version: "3.0.6" vector_math: dependency: transitive description: @@ -393,5 +462,5 @@ packages: source: hosted version: "1.0.0" sdks: - dart: ">=2.19.0 <3.0.0" - flutter: ">=3.0.0" + dart: ">=3.0.0-0 <4.0.0" + flutter: ">=3.3.0" diff --git a/windows/flutter/generated_plugin_registrant.cc b/windows/flutter/generated_plugin_registrant.cc index 8b6d468..4f78848 100644 --- a/windows/flutter/generated_plugin_registrant.cc +++ b/windows/flutter/generated_plugin_registrant.cc @@ -6,6 +6,9 @@ #include "generated_plugin_registrant.h" +#include void RegisterPlugins(flutter::PluginRegistry* registry) { + UrlLauncherWindowsRegisterWithRegistrar( + registry->GetRegistrarForPlugin("UrlLauncherWindows")); } diff --git a/windows/flutter/generated_plugins.cmake b/windows/flutter/generated_plugins.cmake index b93c4c3..88b22e5 100644 --- a/windows/flutter/generated_plugins.cmake +++ b/windows/flutter/generated_plugins.cmake @@ -3,6 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST + url_launcher_windows ) list(APPEND FLUTTER_FFI_PLUGIN_LIST