flutter_textfiled_util 2.0.0
flutter_textfiled_util: ^2.0.0 copied to clipboard
The custom input box can implement the TextView function of iOS, that is, it can support multi-line text input, support basic text operations such as scrolling and maximum character limit, and is conv [...]
example/main.dart
import 'package:flutter/material.dart';
import 'custom_textfiled_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// 点击按钮有高亮背景色及水波纹 都设置透明色
highlightColor: const Color.fromRGBO(1, 0, 0, 0.0),
splashColor: const Color.fromRGBO(1, 0, 0, 0.0),
cardColor: const Color.fromRGBO(1, 1, 1, 0.65),
primarySwatch: Colors.blue,
),
home: const CustomTextFiledPage(),
// home: const TextFiledPage(),
// home: const TextViewPage(),
// home: const LoginTextFiledPage(),
);
}
}