FLUTTER ECOSYSTEM

sivaprasadnk/url_textformfield

sivaprasadnk/url_textformfield open-source repository details.

url_textformfield 專案封面
Stars
0
Forks
0
最近推送(UTC)
2022年12月10日
專案狀態
未封存
Sivaprasad NK GitHub avatar
GITHUB User

Sivaprasad NK ↗

Tripunithura, Kerala官方網站 ↗
語言C++CMakeDartHTMLCSwiftKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 3 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}
  • flutter_lints開發依賴^2.0.0

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 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.