refactor(ui): 💄 change textfield border on android
This commit is contained in:
parent
101af0f3fa
commit
5761f686dd
4 changed files with 11 additions and 8 deletions
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"conventionalCommits.scopes": [
|
||||
"ocr"
|
||||
"ocr",
|
||||
"ui"
|
||||
]
|
||||
}
|
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue