FreewillFxWidgets
This package is simple widgets for FreewillFx Apps.
Installation
- Add the latest version of package to your pubspec.yaml and run
flutter pub get
dependencies:
freewill_fx_widgets: ^1.4.9
- Import the package and use in your Flutter App
import 'package: freewill_fx_widgets/fx.dart';
TextFontStyle
Text widget that you can modify TextStyle:
- FontFamily
- FontSize
- Color
- TextAlign
- FontWeight
- TextOverflow
- Underline
AlertDialog
Dialog that you can modify the title of the dialog
- title
- buttonColor
Loading
Loading page
PermissionHandler
- Camera
- Gallery
- Location
ImagePicker
- From camera
- From gallery
PageIndicator
GalleryView
CropImage
In showImageBottomSheet -> cropImage = true
Example:
File? file = await showImagePickerBottomSheet(
color: Colors.black,
cropImage: true,
);
setState(() => _image = file);
QRCodeScanner
Example:
Barcode? result = await Get.to(() => FXQrScanner());
if (result != null) {
setState(() => qrResult = result);
}
SubmitButton
Button that you can modify the style:
- Title
- TestKey
- BackgroundColor
- Padding
- BorderWidth
- BorderRadius
- BorderWidth
- BorderColor
- Shadow
- TextColor
- FontSize
OkCancelDialog
- Alert Dialog that you can custom your own title, icon, content, button
Switch
- Custom switch that you can add text in the switch
OTPTextField
- OTP TextField that you can use in automate test
ToastMessage
- Custom toast message (e.g. copy to clipboard)
BackButton
- Back button that you can custom icon, shadow, add circle border
SelectedButton
- List of selected button (e.g. filter group in TERMINUS Mobile)
ItemPickerPage & ItemPickerCell
- Select Item page that you can custom selected tag, picker cell, single/multiple select
SearchBar
- custom search bar
Calendar
- Calendar that made with Syncfusion date range picker
BottomSheet
- Template of Bottom Sheet
NewVersionDialog
_ show dialog when have new version
Libraries
- fx
- fx_alert_dialog/fx_alert_dialog
- fx_alert_dialog/src/fx_alert_dialog
- fx_bottom_sheet/fx_bottom_sheet
- fx_bottom_sheet/src/fx_bottom_sheet
- fx_calendar/fx_calendar
- fx_calendar/src/fx_calendar
- fx_gallery_view/fx_gallery_view
- fx_gallery_view/src/fx_gallery_image
- fx_gallery_view/src/fx_gallery_image_type
- fx_gallery_view/src/fx_gallery_view
- fx_image_picker/fx_image_picker
- fx_image_picker/src/fx_camera_page
- fx_image_picker/src/fx_image_picker
- fx_item_picker/fx_item_picker
- fx_item_picker/src/fx_item_picker
- fx_item_picker_cell/fx_item_picker_cell
- fx_item_picker_cell/src/fx_item_picker_cell
- fx_loading/fx_loading
- fx_loading/src/fx_loading
- fx_new_version/fx_new_version
- fx_new_version/src/fx_new_version
- fx_ok_cancel_dialog/fx_ok_cancel_dialog
- fx_ok_cancel_dialog/src/fx_ok_cancel_dialog
- fx_otp/fx_otp
- fx_otp/src/fx_otp
- fx_page_indicator/fx_page_indicator
- fx_page_indicator/src/fx_page_indicator
- fx_permission/fx_permission
- fx_permission/src/fx_permission
- fx_search_bar/fx_search_bar
- fx_search_bar/src/fx_search_bar
- fx_switch/fx_switch
- fx_switch/src/fx_switch
- fx_text/fx_text
- fx_text/src/fx_text
- fx_toast/fx_toast
- fx_toast/src/fx_toast
- value_constant