flutter_widget_function 1.7.0
flutter_widget_function: ^1.7.0 copied to clipboard
Custom Widgets and Functions, Widgets and Functions easy to access, reuse and no longer code.
flutter_widget_function #
Custom Widgets and Functions, Widgets and Functions easy to access, reuse and no longer code.
Using #
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile and web development, and a full API reference.
Installation #
First, add flutter_widget_function
as a dependency in your pubspec.yaml file.
In your flutter project add the dependency:
dependencies:
...
flutter_widget_function:
For help getting started with Flutter, view the online documentation.
Example #
Please follow this example here.
Functions #
Utils Function #
Utils.equals()
Utils.isNullOREmpty()
Utils.isNullOREmptyORZero()
Extension Function #
String.parseInt()
String.parseDouble()
String.parseBool()
int.parseBool()
TextEditingController.trimText()
Widgets #
Responsive Layout #
ResponsiveLayout(
mobileBody: Widget,
tabletBody: Widget,
desktopBody: Widget
);
Keyboard Dismiss #
KeyboardDismiss(
child: MaterialApp(
home: const MyApp()),
);
Text Field #
DDTextField(labelText: "Value", hintText: "Value")
Card #
DDCard(
color: Colors.blue,
shadowColor: Colors.grey,
radius: 20,
blur: 15
)
Progress Dialog #
ProgressDialog _dialog = ProgressDialog(context);
_dialog.show();
_dialog.dismiss();