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": [
"ocr"
"ocr",
"ui"
]
}

View file

@ -35,7 +35,9 @@ class PlatformField extends PlatformWidget<TextField, CupertinoTextField> {
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,

View file

@ -53,10 +53,10 @@ class _CreateEntryViewState extends State<CreateEntryView> {
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<CreateEntryView> {
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:

View file

@ -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: