refactor(ui): 💄 change textfield border on android

This commit is contained in:
Matyáš Caras 2023-09-29 11:38:21 +02:00
parent 101af0f3fa
commit 5761f686dd
Signed by untrusted user who does not match committer: hernik
GPG key ID: 2A3175F98820C5C6
4 changed files with 11 additions and 8 deletions

View file

@ -1,5 +1,6 @@
{ {
"conventionalCommits.scopes": [ "conventionalCommits.scopes": [
"ocr" "ocr",
"ui"
] ]
} }

View file

@ -35,7 +35,9 @@ class PlatformField extends PlatformWidget<TextField, CupertinoTextField> {
controller: controller, controller: controller,
enabled: enabled, enabled: enabled,
obscureText: obscureText, obscureText: obscureText,
decoration: InputDecoration(labelText: labelText), decoration: InputDecoration(
labelText: labelText,
border: OutlineInputBorder(borderRadius: BorderRadius.circular(4))),
autocorrect: autocorrect, autocorrect: autocorrect,
keyboardType: keyboardType, keyboardType: keyboardType,
style: textStyle, style: textStyle,

View file

@ -53,10 +53,10 @@ class _CreateEntryViewState extends State<CreateEntryView> {
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
const Text("Name"),
SizedBox( SizedBox(
width: MediaQuery.of(context).size.width * 0.8, width: MediaQuery.of(context).size.width * 0.8,
child: PlatformField( child: PlatformField(
labelText: "Name",
controller: TextEditingController(text: newEntry.name), controller: TextEditingController(text: newEntry.name),
onChanged: (v) { onChanged: (v) {
newEntry.name = v; newEntry.name = v;
@ -66,10 +66,10 @@ class _CreateEntryViewState extends State<CreateEntryView> {
const SizedBox( const SizedBox(
height: 15, height: 15,
), ),
const Text("Amount"),
SizedBox( SizedBox(
width: MediaQuery.of(context).size.width * 0.8, width: MediaQuery.of(context).size.width * 0.8,
child: PlatformField( child: PlatformField(
labelText: "Amount",
controller: controller:
TextEditingController(text: newEntry.amount.toString()), TextEditingController(text: newEntry.amount.toString()),
keyboardType: keyboardType:

View file

@ -779,10 +779,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: platform name: platform
sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" sha256: "57c07bf82207aee366dfaa3867b3164e4f03a238a461a11b0e8a3a510d51203d"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.1.0" version: "3.1.1"
plugin_platform_interface: plugin_platform_interface:
dependency: transitive dependency: transitive
description: description:
@ -1024,10 +1024,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vm_service name: vm_service
sha256: "0fae432c85c4ea880b33b497d32824b97795b04cdaa74d270219572a1f50268d" sha256: c538be99af830f478718b51630ec1b6bee5e74e52c8a802d328d9e71d35d2583
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "11.9.0" version: "11.10.0"
watcher: watcher:
dependency: transitive dependency: transitive
description: description: