import 'package:flutter/material.dart'; import 'package:teso/util/consts.dart'; fineText(BuildContext context, TextEditingController user, String hint) { return Container( width: MediaQuery.of(context).size.width * 0.45, height: 40, margin: EdgeInsets.symmetric( horizontal: MediaQuery.of(context).size.width * 0.02), child: TextField( textAlign: TextAlign.left, controller: user, style: TextStyle( color: Colors.black, ), decoration: InputDecoration( contentPadding: EdgeInsets.only(top: 5, left: 10), focusedBorder: OutlineInputBorder( borderSide: BorderSide(color: accentMain, width: 1.0), ), enabledBorder: OutlineInputBorder( borderSide: BorderSide(color: Colors.black, width: 1.0), ), hintText: hint, hintStyle: TextStyle(color: Colors.grey), ), ), ); }