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()
Http Overrides
If you Enable SSL certificate verification for api call
HttpSSLCertificate.enable();
If you Disable SSL certificate verification for api call
HttpSSLCertificate.disable();
Progress Dialog
ProgressDialog _dialog = ProgressDialog(context);
_dialog.show();
_dialog.dismiss();
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
)
Tap
Tap(
onTap: () {
//your functional code
},
child: child
)
Display Touch (Enable / Disable)
Touch(
disable: true,
child: child
)
Flex Width and Height
FlexWidth(
child: child
)
FlexHeight(
child: child
)
Libraries
- flutter_widget_function
- flutter_widget_function_method_channel
- flutter_widget_function_platform_interface
- flutter_widget_function_web
- function/extension
- function/http_ssl_certificate
- function/utils
- widget/card/dd_card
- widget/dialog/progress_dialog
- widget/keyboard/keyboard_dismiss
- widget/responsive/responsive_layout
- widget/tap/tap
- widget/text_field/dd_text_field
- widget/touch/touch