You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1017 B
35 lines
1017 B
3 years ago
|
import 'package:flutter/material.dart';
|
||
|
import 'package:teso/util/consts.dart';
|
||
|
|
||
|
buildAmount(BuildContext context, TextEditingController user) {
|
||
|
return Container(
|
||
|
width: double.infinity,
|
||
|
height: 45,
|
||
|
child: TextField(
|
||
|
autofocus: true,
|
||
|
keyboardType: TextInputType.number,
|
||
|
textAlign: TextAlign.left,
|
||
|
controller: user,
|
||
|
decoration: InputDecoration(
|
||
|
prefix: Container(
|
||
|
margin: EdgeInsets.only(right: 6),
|
||
|
padding: EdgeInsets.only(right: 5),
|
||
|
child: Text(
|
||
|
"GH¢ ",
|
||
|
style: TextStyle(color: Colors.grey),
|
||
|
),
|
||
|
),
|
||
|
focusedBorder: OutlineInputBorder(
|
||
|
borderSide: BorderSide(color: accentMain, width: 1.0),
|
||
|
),
|
||
|
enabledBorder: OutlineInputBorder(
|
||
|
borderSide: BorderSide(color: Colors.black, width: 1.0),
|
||
|
),
|
||
|
//contentPadding: EdgeInsets.only(top: 8.0),
|
||
|
hintText: "00.00",
|
||
|
hintStyle: TextStyle(color: Colors.grey),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|