littlefish_feature_user_switching
A Flutter package that enables seamless user switching within a business, allowing users to log in to an existing business without signing out and back in. Built for the Littlefish Merchant App ecosystem.
Features
- Switch between users in a business without logging out
- Integrates with Redux state management
- Customizable UI components for user switching
Getting Started
Add this package to your pubspec.yaml:
dependencies:
littlefish_feature_user_switching:
path: merchant_features/user_switching/littlefish_feature_user_switching
Then run:
flutter pub get
Usage
Import the package:
import 'package:littlefish_feature_user_switching/littlefish_feature_user_switching.dart';
See the example in the lib/ui/pages/user_switching_page.dart for integration details.
Dependencies
- flutter
- redux
- redux_thunk
- flutter_redux
- loading_animation_widget
- littlefish_core
- littlefish_auth
License
See LICENSE.
Changelog
See CHANGELOG.md.
Libraries
- helpers/user_switch_helper
- littlefish_feature_user_switching
- User switching and clock-in feature for the littlefish merchant app.
- models/user_switching_result
- services/user_switching_service
- state/user_switching_state
- ui/components/app_bar/user_switching_custom_app_bar
- ui/components/dialogs/exit_confirmation_dialog
- ui/components/dialogs/logout_confirmation_dialog
- ui/components/dialogs/switch_user_confirmation_dialog
- ui/components/formfields/pin_otp_form_field
- ui/components/formfields/user_switching_search_text_field
- ui/components/scaffolds/user_switching_scaffold
- ui/components/utilities/keyboard_dismissal_utility
- ui/pages/clock_in_page
- ui/pages/clock_out_intermittent_page
- ui/pages/user_switching_page
- ui/theme/user_switching_typography
- ui/user_switching_helper
- ui/widgets/clock_in_user_tile
- ui/widgets/user_switching_tile