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), ), ), ); }