diff --git a/.vscode/settings.json b/.vscode/settings.json index e21191e..1530c4d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "conventionalCommits.scopes": [ - "ocr" + "ocr", + "ui" ] } \ No newline at end of file diff --git a/lib/pw/platformfield.dart b/lib/pw/platformfield.dart index b038858..dab58f3 100644 --- a/lib/pw/platformfield.dart +++ b/lib/pw/platformfield.dart @@ -35,7 +35,9 @@ class PlatformField extends PlatformWidget { controller: controller, enabled: enabled, obscureText: obscureText, - decoration: InputDecoration(labelText: labelText), + decoration: InputDecoration( + labelText: labelText, + border: OutlineInputBorder(borderRadius: BorderRadius.circular(4))), autocorrect: autocorrect, keyboardType: keyboardType, style: textStyle, diff --git a/lib/views/create_entry.dart b/lib/views/create_entry.dart index 4762fa6..43d4d75 100644 --- a/lib/views/create_entry.dart +++ b/lib/views/create_entry.dart @@ -53,10 +53,10 @@ class _CreateEntryViewState extends State { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - const Text("Name"), SizedBox( width: MediaQuery.of(context).size.width * 0.8, child: PlatformField( + labelText: "Name", controller: TextEditingController(text: newEntry.name), onChanged: (v) { newEntry.name = v; @@ -66,10 +66,10 @@ class _CreateEntryViewState extends State { const SizedBox( height: 15, ), - const Text("Amount"), SizedBox( width: MediaQuery.of(context).size.width * 0.8, child: PlatformField( + labelText: "Amount", controller: TextEditingController(text: newEntry.amount.toString()), keyboardType: diff --git a/pubspec.lock b/pubspec.lock index f14d548..622a0b9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -779,10 +779,10 @@ packages: dependency: transitive description: name: platform - sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" + sha256: "57c07bf82207aee366dfaa3867b3164e4f03a238a461a11b0e8a3a510d51203d" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.1.1" plugin_platform_interface: dependency: transitive description: @@ -1024,10 +1024,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "0fae432c85c4ea880b33b497d32824b97795b04cdaa74d270219572a1f50268d" + sha256: c538be99af830f478718b51630ec1b6bee5e74e52c8a802d328d9e71d35d2583 url: "https://pub.dev" source: hosted - version: "11.9.0" + version: "11.10.0" watcher: dependency: transitive description: