Custom Widgets and Functions, Widgets and Functions easy to access, reuse and no longer code.
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.
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.
Please follow this example here.
Object.isNullOREmpty()
Object.isNullOREmptyORZero()
Object.equals()
Object.parseInt()
Object.parseDouble()
Object.parseBool()
Object.parseBool()
TextEditingController.trimText()
If you Enable SSL certificate verification for api call
HttpSSLCertificate.enable();
If you Disable SSL certificate verification for api call
HttpSSLCertificate.disable();
ProgressDialog _dialog = ProgressDialog(context);
_dialog.show();
_dialog.dismiss();
ResponsiveLayout(
mobileBody: Widget,
tabletBody: Widget,
desktopBody: Widget
);
KeyboardDismiss(
child: MaterialApp(
home: const MyApp()),
);
DDTextField(labelText: "Value", hintText: "Value")
DDCard(
color: Colors.blue,
shadowColor: Colors.grey,
radius: 20,
blur: 15
)
Tap(
onTap: () {
//your functional code
},
child: child
)
Touch(
disable: true,
child: child
)
FlexWidth(
child: child
)
FlexHeight(
child: child
)