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.
		
		
		
		
			
				
					33 lines
				
				944 B
			
		
		
			
		
	
	
					33 lines
				
				944 B
			| 
											4 years ago
										 | 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), | ||
|  |       ), | ||
|  |     ), | ||
|  |   ); | ||
|  | } |