flutter_icon_field 1.0.2
flutter_icon_field: ^1.0.2 copied to clipboard
Flutter component inspired by PrimeNG's IconField.
flutter_icon_field #
A custom Flutter widget that displays a circular progress indicator with a center image. Ideal for loading screens with branding or custom visuals.
π Installation #
Add to your pubspec.yaml
:
dependencies:
flutter_icon_field: ^1.0.0
π How to Use #
Import in your Dart code:
import 'package:flutter_icon_field/flutter_icon_field.dart';
π‘ Features #
- β - Single icon (left or right) β with Icon or SvgPicture.
- β - FloatLabel support (floating label).
- β - IftaLabel support (fixed label over the field).
- β - Enum IconFieldSize: small, normal, large.
- β - Customizable border, padding, style, etc.
β¨Demos #

β Example
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Flutter Icon Field')),
body: Padding(
padding: const EdgeInsets.all(20.0),
child: SizedBox(
width: 300,
child: FlutterIconField(
label: 'Password',
labelType: FlutterIconFieldLabelType.float,
iconPosition: FlutterIconFieldPosition.right,
size: FlutterIconFieldSize.normal,
icon: const Icon(Icons.lock, color: Colors.pinkAccent),
obscureText: true,
),
),
),
);
}
π€ Contributing #
Contributions are welcome! Open an issue or submit a pull request: https://github.com/andersonmatte/flutter_icon_field
π¨βπ» Author #
Anderson Matte GitHub | LinkedIn
π License #
This project is licensed under the MIT License. See the LICENSE file for more details.