Last updated:
0 purchases
flutter widget function
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:
copied to clipboard
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()
copied to clipboard
Extension Function #
String.parseInt()
String.parseDouble()
String.parseBool()
int.parseBool()
TextEditingController.trimText()
copied to clipboard
Http Overrides #
If you Enable SSL certificate verification for api call
HttpSSLCertificate.enable();
copied to clipboard
If you Disable SSL certificate verification for api call
HttpSSLCertificate.disable();
copied to clipboard
Progress Dialog #
ProgressDialog _dialog = ProgressDialog(context);
_dialog.show();
_dialog.dismiss();
copied to clipboard
Widgets #
Responsive Layout #
ResponsiveLayout(
mobileBody: Widget,
tabletBody: Widget,
desktopBody: Widget
);
copied to clipboard
Keyboard Dismiss #
KeyboardDismiss(
child: MaterialApp(
home: const MyApp()),
);
copied to clipboard
Text Field #
DDTextField(labelText: "Value", hintText: "Value")
copied to clipboard
Card #
DDCard(
color: Colors.blue,
shadowColor: Colors.grey,
radius: 20,
blur: 15
)
copied to clipboard
Tap #
Tap(
onTap: () {
//your functional code
},
child: child
)
copied to clipboard
Display Touch (Enable / Disable) #
Touch(
disable: true,
child: child
)
copied to clipboard
Flex Width and Height #
FlexWidth(
child: child
)
FlexHeight(
child: child
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.