smooth_auth_sheet 0.1.1
smooth_auth_sheet: ^0.1.1 copied to clipboard
Reusable, modern auth/profile bottom sheet for Flutter with Google-first login CTA.
smooth_auth_sheet #
Modern, reusable auth/profile modal for Flutter apps.
Google-first login CTA, secondary text-only action (for "Salta"), and profile mode in the same adaptive component.
Why a dedicated package #
smooth_auth_sheet is separated from smooth_bottom_sheet by design:
- Authentication and profile flows have specific UX and data contracts
- You can reuse the same auth UI across different apps
smooth_bottom_sheetremains a generic container component
Features #
- Login mode with primary CTA
Continua con Google - Text-only secondary CTA (no background, no border), ideal for
Salta - Built-in haptic feedback on CTA taps
- Profile mode with avatar, identity and custom actions
- Adaptable theme for colors, radius and spacing
- Compatible with your auth SDK (
google_sign_in, Firebase Auth, Supabase Auth)
Installation #
dependencies:
smooth_auth_sheet: ^0.1.1
Quick usage #
import 'package:flutter/material.dart';
import 'package:smooth_auth_sheet/smooth_auth_sheet.dart';
await showSmoothAuthSheet<void>(
context: context,
child: SmoothAuthSheet(
mode: AuthSheetMode.login,
title: 'Salva tutto in sicurezza',
subtitle: 'Accedi per sincronizzare su tutti i dispositivi',
googleButtonLabel: 'Continua con Google',
secondaryActionLabel: 'Salta',
onGoogleSignIn: () async {
// Collega qui il tuo login reale.
},
onSecondaryAction: () async {
Navigator.of(context).pop();
},
),
);
Google auth modern bottom sheet #
Per ottenere il selettore account Google moderno che si apre dal basso su Android, collega il callback onGoogleSignIn al plugin Google ufficiale:
google_sign_inper account chooser nativo- oppure Firebase Auth (
signInWithCredential) dopo il token Google
Il package UI resta neutro e non forza un SDK specifico.
Related smooth packages #
- smooth_bottom_sheet
- smooth_charts
- smooth_infinite_tab_bar
- smooth_onboarding
- smooth_paywall
- smooth_toast
Author #
Created by Elia Zavatta.
- GitHub: github.com/eliazv
- LinkedIn: linkedin.com/in/eliazavatta
- Email: info@eliazavatta.it
License #
MIT