Advertisement
wildanfuady

Untitled

Feb 3rd, 2020
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import 'package:flutter/material.dart';
  2.  
  3. class TextFieldWidget extends StatelessWidget {
  4.  
  5. final tipe;
  6. final icon;
  7. final String label;
  8. final String hint;
  9.  
  10. const TextFieldWidget(this.tipe, this.icon, this.label, this.hint, {Key key}) : super(key:key);
  11.  
  12.  
  13. @override
  14. Widget build(BuildContext context){
  15.  
  16.  
  17. return TextField(
  18. keyboardType: tipe,
  19. decoration: InputDecoration(
  20. icon: Icon(icon),
  21. labelText: label,
  22. hintText: hint,
  23. ),
  24. );
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement