custom_flutter_textfield 0.0.1
custom_flutter_textfield: ^0.0.1 copied to clipboard
A Custom TextFormField For Flutter Project.
import 'package:custom_flutter_textfield/custom_flutter_textfield.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Custom TextField',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Custom TextField'),
),
body: Padding(
padding: const EdgeInsets.all(8.0),
child: Column(
children: [
CustomTextField(
controller: TextEditingController(),
)
],
),
),
);
}
}