flutter_app_kit

pub package

App bootstrap, flavors, secure session storage, Material snackbars, dialogs, bottom sheets, and a sign-in prompt for Lemsa apps.

Platforms: Android, iOS, Linux, macOS, Web, Windows
Requires: Flutter >=3.44.0

Install

dependencies:
  flutter_app_kit: ^1.1.0
  flutter_page_kit: ^1.0.0
  lemsa_core_kit: ^1.1.0
import 'package:flutter_app_kit/flutter_app_kit.dart';

Owns

  • bootstrap(AppConfig) — dotenv, optional vendor init callbacks, prefs / secure storage, error zone
  • AppFlavor — dev / staging / prod via --dart-define=FLAVOR=
  • SecureSessionStore — tokens/credentials only
  • deleteUserData() — secure wipe + prefs allowlist + optional local DB hook
  • MaterialNotices — Material ScaffoldMessenger implementation of Notices
  • Dialogs — showAppDialog (responsive width, optional close button), showAppFullScreenDialog, showAppBottomSheet (safe area, drag handle, capped width/height), showConfirmDialog → bool
  • requireSignIn — "log in to continue" gate for actions; returns true when the user is (or becomes) signed in
  • AppDialogs(navigatorKey:) — the same helpers without a BuildContext, for controllers (pass router.navigatorKey)
if (!await requireSignIn(
  context,
  isSignedIn: () => session.isSignedIn,
  openSignIn: () => context.router.push(const LoginRoute()),
  texts: SignInPromptTexts(
    title: t.auth.title,
    message: t.auth.loginToContinue,
    signInLabel: t.auth.signIn,
    cancelLabel: t.common.cancel,
  ),
)) return;

Firebase/Supabase SDKs are not package dependencies — pass initFirebase / initSupabase callbacks from the app.

Agent skill

npx skills add fodilfliti/flutter_app_kit
# or: npx skills add fodilfliti/lemsa-skills

Libraries

flutter_app_kit
App bootstrap, flavors, secure storage, Material Notices, dialogs, bottom sheets, and the sign-in prompt.