dart_widget

Creator: coderz1093

Last updated:

0 purchases

dart_widget Image
dart_widget Images

Languages

Categories

Add to Cart

Description:

dart widget

dart_widget: #
A Dart package help you to add command functions like the Widget in Flutter, for example, you can add a widget to the CircleLoading, TextField, and more. #

# 👨‍💻 Developed by: #

Nasr Al-Rahbi @abom_me
👨🏻‍💻 Find me in : #








Text Field

Password Field
One Line Field
Multi Line Field



Circle Loading


Setup #
Pubspec changes:
dependencies:
dart_widget: <last_version>
copied to clipboard
Sample example:
import 'package:dart_widget/dart_widget.dart';
Future<void> main() async {
String? name = TextField(
prompt: "Enter Your Name",
hint: "ex: abom.me",
validator: (String value) {
if (value.length < 3) {
throw ValidationErrors("Name must be at least 3 characters long");
}
return true;
}).oneline();
print(name);
}
copied to clipboard
TextField Password Field #

import 'package:dart_widget/dart_widget.dart';
Future<void> main() async {
String? password = TextField(
prompt: "Enter Your Password",
hint: "ex: 123456",
validator: (String value) {
if (value.length < 6) {
throw ValidationErrors("Password must be at least 6 characters long");
}
return true;
}).password();
print(password);
}
copied to clipboard
TextField Multi Line Field #

import 'package:dart_widget/dart_widget.dart';
Future<void> main() async {
String? desc = TextField(prompt: "Enter your Description").multiline();
print(desc);
}
copied to clipboard
Circle Loading #
import 'package:dart_widget/dart_widget.dart';
Future<void> main() async {

final circle = CircleLoading(
loadingText: "Please wait",
onDoneText: "Thank you for waiting",
);
circle.start();
await Future.delayed(Duration(seconds: 5), () {
circle.stop();
});
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.