import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:teso/util/consts.dart'; buildAmount(BuildContext context, TextEditingController user) { return Container( width: 100, height: 65, child: TextField( autofocus: true, maxLength: 3, maxLengthEnforcement: MaxLengthEnforcement.enforced, keyboardType: TextInputType.number, textAlign: TextAlign.center, controller: user, style: TextStyle( fontSize: 18, ), decoration: InputDecoration( 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: "0000", hintStyle: TextStyle(color: Colors.grey), ), ), ); }