foop_loyalty_plugin

A loyalty management tool

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Note: add responsive_framework: ^0.1.7

void main() { runApp( MainApp()); setupRewardsLocator(); }

class MainApp extends StatefulWidget {

static Future

MyApp createState() => MyApp(); }

class MyApp extends State

Locale? _locale; void setLocale(Locale locale) { setState(() { _locale = locale; }); }

@override initState() { super.initState(); if (_locale == null) { setLocale(const Locale("en", "IN")); } } @override Widget build(BuildContext context) { SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle( statusBarColor: HexColor(AppColors.appColorTransparent), statusBarBrightness: Brightness.dark, statusBarIconBrightness: Brightness.dark));

return MaterialApp(
  home:  MyHomePage(),
  builder: (context, widget) => ResponsiveWrapper.builder(
    BouncingScrollWrapper.builder(context, widget!),
    maxWidth: 1200,
    minWidth: 450,
    defaultScale: true,
    breakpoints: [
      ResponsiveBreakpoint.resize(450, name: MOBILE),
      ResponsiveBreakpoint.autoScale(800, name: TABLET),
      ResponsiveBreakpoint.autoScale(1000, name: TABLET),
      ResponsiveBreakpoint.resize(1200, name: DESKTOP),
      ResponsiveBreakpoint.autoScale(2460, name: "4K"),
    ],
    background: Container(
      color: HexColor(AppColors.appColorBackground),
    ),
  ),
  locale: _locale,
  themeMode: ThemeMode.light,
  supportedLocales: const [
    Locale("en", "US"),
    Locale("hi", "IN"),
    Locale("ta", "IN"),
    Locale("te", "IN"),
    Locale("ur", "IN"),
  ],
  localizationsDelegates: const [
    AppLocalizations.delegate,

  ],
  localeResolutionCallback: (locale, supportedLocales) {
    for (var supportedLocale in supportedLocales) {
      if (supportedLocale.languageCode == locale!.languageCode &&
          supportedLocale.countryCode == locale.countryCode) {
        return supportedLocale;
      }
    }
    return supportedLocales.first;
  },
  debugShowCheckedModeBanner: false,
);

} }

class MyHomePage extends StatefulWidget {

@override State

class _MyHomePageState extends State

@override Widget build(BuildContext context) {

return Scaffold(

  body: BlocProvider(
    create: (_) => CubitMain(),
    child:

    ManageRewardsPage(
      appLanguageCode: "en",
      dateFormat: 'dd-MMM-yyyy',
      timeFormat: "HH:mm",
      baseUrlWithoutHttp: "test.foop.com",
      googleTranslationKey: "google key",
      businessId: 1638510830197,
      userImage: "/media/person/profile/1638510631340/1646897564696_2927.jpg",
      userName: "Tara R Shah",
      userId: 1638510631340,
      token: "token",
      baseUrl:"https://test.foop.com",
    ),
  ),

);

} }

Libraries

account_details_billing_widget
add_cash_approvers
add_team_member
amount_type_widget
apiCall
app_auto_size_text
app_buttons
app_user_list_tile
appAlertDialog
appAttachmentComponent
appAvatar
appemptywidget
appHtmlViewer
appProgressButton
base_response
basicInfo
calls
camera_page
cas_insentive_approver
circle_button
circle_button
circle_text
colors
common_button
common_helpdesk_sheet
common_list_tile
commonComponents
commonListingrequest
commonListingResponse
commonListResposne
conatants
connectionItem
contexttype
contexttype
country_state_payload
country_state_response
create_post_payload
create_rewards_reponse
create_subscription_module
cubit_main
custom_app_bar
custom_receivers_page
custom_tab_maker
customcard
custome_privacy_widget
CustomPaginator
date_time_widget
dateFormatItem
demo_account_on_off_widget
display_picture
DownloadProgressDialog
DpEnlargePage
empty_widget
foop_loyalty_plugin
global_file_upload_pkg
GlobalSerachEnum
header_widget
hexColors
imagepickerAndCropper
imageuploadrequestandresponse
invoice_card
loading_indicator
localization
locator
loyality_list_type_page
loyalty_add_edit
loyalty_benifits
loyalty_edit
loyalty_edit_page
loyalty_foop
loyalty_list_response
loyalty_list_response
loyalty_type_page_new
loyaltyPayload
LoyaltyTypeList
main_receiver_page
main_state
manage_cash_loyalty
manage_rewards_page
media_files
member_page
members
NetworkUtils
NetworkUtils
new_y
oustanding_amount_widget
ownertype
ownertype
paginator
paginator_list_view
partner_id_widget
permitted_staff_members
person_type_list
person_type_page
person_type_respnse
PostCardFooter
postcardmedia
postcreate
postcreatepage
postlist
postreceiver
postrecieverlistpage
postRecipientType
redemption_settings
RedemptionResponse
requestedbytype
resolutionenums
rewards_list_page
rewards_list_response
rewards_widget
rewardsDetailPage
select_country_code
serviceTypeEnums
set_loyalty_details
someCommonMixins
states
StringUtils
subcontexttype
subscription_data
subscription_summary_details
subscription_view_response
SubscriptionListResponse
testcard
text_styling
toast_builder
translate_model
utility_class
welcomeMessagesListResponse
wordcounterchecker