Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class TextFieldWidget extends StatelessWidget {
- final tipe;
- final icon;
- final String label;
- final String hint;
- const TextFieldWidget(this.tipe, this.icon, this.label, this.hint, {Key key}) : super(key:key);
- @override
- Widget build(BuildContext context){
- return TextField(
- keyboardType: tipe,
- decoration: InputDecoration(
- icon: Icon(icon),
- labelText: label,
- hintText: hint,
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement