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.

27 lines
857 B

3 years ago
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:teso/util/consts.dart';
inputTelNumber(BuildContext context, TextEditingController? user) {
3 years ago
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: []),
);
}