v1.0.0url_textformfield
專為輸入 URL 設計的文本框,支援在輸入內容的開頭和結尾添加前置和後置文字
1喜歡 11近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
sivaprasadnk/url_textformfield open-source repository details.
以下為英文專案原文快照,最新內容請造訪 GitHub。
Textformfield designed for inputing urls, with options to add leading and trailing text, appended at begining and end of input
Add this to your package's pubspec.yaml file
dependencies:
url_textformfield: ^1.0.0
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",
);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
依賴清單 3 項
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗