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.
30 lines
913 B
30 lines
913 B
3 years ago
|
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),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|