No Description
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.

inputWidget.dart 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import 'package:flutter/material.dart';
  2. class InputWidgetProfile extends StatelessWidget {
  3. final double topRight;
  4. final double bottomRight;
  5. final double topLeft;
  6. final double bottomLeft;
  7. InputWidgetProfile(this.topRight, this.bottomRight, this.topLeft, this.bottomLeft);
  8. @override
  9. Widget build(BuildContext context) {
  10. return Padding(
  11. padding: EdgeInsets.only(right: 20, left: 20, bottom: 20),
  12. child: Container(
  13. width: MediaQuery.of(context).size.width - 20,
  14. child: Material(
  15. elevation: 10,
  16. color: Colors.red,
  17. shape: RoundedRectangleBorder(
  18. borderRadius: BorderRadius.circular(20)),
  19. child: Padding(
  20. padding: EdgeInsets.only(left: 25, right: 20, top: 10, bottom: 10),
  21. child: TextFormField(
  22. keyboardType: TextInputType.emailAddress,
  23. textInputAction: TextInputAction.next,
  24. decoration: InputDecoration(
  25. border: InputBorder.none,
  26. prefixIcon: Icon(Icons.person),
  27. prefixIconConstraints: BoxConstraints(
  28. minWidth: 40,
  29. minHeight: 40,
  30. ),
  31. hintText: "hris_selfservice@example.com",
  32. hintStyle: TextStyle(color: Color(0xFFE1E1E1), fontSize: 16)),
  33. ),
  34. ),
  35. ),
  36. ),
  37. );
  38. }
  39. }