Created
March 24, 2019 03:25
-
-
Save sahoosunilkumar/5bc38d609a25e15dac9ab151a83323bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_hello_world/resource/style/text.dart'; | |
class EditText extends TextFormField { | |
EditText(String hintText, bool hideText) | |
: super( | |
autofocus: false, | |
obscureText: hideText, | |
style: NormalText, | |
decoration: InputDecoration( | |
hintText: hintText, | |
contentPadding: EdgeInsets.fromLTRB(20.0, 10.0, 20.0, 10.0), | |
border: | |
OutlineInputBorder(borderRadius: BorderRadius.circular(8.0)), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment