FLUTTER ECOSYSTEM

sivaprasadnk/url_textformfield

sivaprasadnk/url_textformfield open-source repository details.

Capa do projeto url_textformfield
Stars
0
Forks
0
Último push (UTC)
10 de dez. de 2022
Status do projeto
Ativo
Sivaprasad NK GitHub avatar
GITHUB User

Sivaprasad NK ↗

Tripunithura, KeralaSite oficial ↗
LinguagensC++CMakeDartHTMLCSwiftKotlinObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • flutter_lintsDesenvolvimento^2.0.0

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher README

url_textformfield

Textformfield designed for inputing urls, with options to add leading and trailing text, appended at begining and end of input

Getting Started

Add this to your package's pubspec.yaml file


dependencies:
  url_textformfield: ^1.0.0

Usage

First, you just have to import the package using:

import 'package:url_textformfield/url_textformfield.dart';

Then , use the widget as below,


  @override
  Widget build(BuildContext context) {
    return UrlTextFormField(
      focusNode: ctrlFocusNode,  
      padding: const EdgeInsets.all(10),
      onChanged: (val) {},
      leadingText: 'https://',
      suffixIcon: const Icon(
        Icons.check,
        color: Colors.green,
      ),
      trailingText: ".com",
    );

Example

screenshot

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.