beauty_textfield 0.0.1 copy "beauty_textfield: ^0.0.1" to clipboard
beauty_textfield: ^0.0.1 copied to clipboard

A Beauty Textfield made with Flutter.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:beauty_textfield/beauty_textfield.dart';

void main() {
  runApp(MaterialApp(
    home: Main(),
    debugShowCheckedModeBanner: false,
    theme: ThemeData.dark(),
  ));
}

class Main extends StatefulWidget {
  @override
  _MainState createState() => _MainState();
}

class _MainState extends State<Main> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        title: Text('Beauty Textfield Example'),
      ),
      body: Container(
          padding: EdgeInsets.only(top: 10),
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              BeautyTextfield(
                width: double.maxFinite,
                height: 60,
                duration: Duration(milliseconds: 300),
                inputType: TextInputType.text,
                prefixIcon: Icon(
                  Icons.lock_outline,
                ),
                placeholder: "With Suffic Icon",
                onTap: () {
                  print('Click');
                },
                onChanged: (t) {
                  print(t);
                },
                onSubmitted: (d) {
                  print(d.length);
                },
                suffixIcon: Icon(Icons.remove_red_eye),
              ),
              BeautyTextfield(
                width: double.maxFinite,
                height: 60,
                duration: Duration(milliseconds: 300),
                inputType: TextInputType.text,
                prefixIcon: Icon(
                  Icons.lock_outline,
                ),
                placeholder: "Without Suffic Icon",
                onTap: () {
                  print('Click');
                },
                onChanged: (t) {
                  print(t);
                },
                onSubmitted: (d) {
                  print(d.length);
                },
              ),
            ],
          )),
    );
  }
}
31
likes
20
pub points
24%
popularity

Publisher

unverified uploader

A Beauty Textfield made with Flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on beauty_textfield