text_form_field_outline 0.0.5 copy "text_form_field_outline: ^0.0.5" to clipboard
text_form_field_outline: ^0.0.5 copied to clipboard

A TextFormFieldOutline for expressing border around text form fields

TextFormFieldOutline is a library for adding a beautiful Text Form Field with Outline border feature.

You can use a pre-defined TextFormFieldOutline or make a fully customized TextFormField with Outline border.

know whether this package might be useful for them.

Installation #

  1. Add the latest version of package to your pubspec.yaml (and run 'dart pub get') yaml dependancies: text_form_field_outline: ^0.0.3

  2. Import the package and use it in your Flutter app. import 'package:text_form_field_outline/text_form_field_outline.dart';


Features #

  • Default Border around textformField
  • change border color
  • change border radius

Getting started #

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Text Form Field Outline',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Text Form Field Outline'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {


  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(widget.title),
      ),
      body: Center(
        child: TextFormFieldOutline(),
      ),

    );
  }
}


Image #

11
likes
150
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

A TextFormFieldOutline for expressing border around text form fields

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on text_form_field_outline