import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:teso/util/consts.dart'; inputTelNumber(BuildContext context, TextEditingController? user) { return Container( width: double.infinity, height: 45, child: TextField( maxLengthEnforcement: MaxLengthEnforcement.enforced, autofocus: true, keyboardType: TextInputType.number, textAlign: TextAlign.center, controller: user, decoration: InputDecoration( focusedBorder: OutlineInputBorder( borderSide: BorderSide(color: accentMain, width: 1.0), ), enabledBorder: OutlineInputBorder( borderSide: BorderSide(color: Colors.black, width: 1.0), ), hintStyle: TextStyle(color: Colors.grey), ), inputFormatters: []), ); }