smooth_auth_sheet 0.1.1 copy "smooth_auth_sheet: ^0.1.1" to clipboard
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 #

pub package likes Buy Me a Coffee

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_sheet remains 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_in per account chooser nativo
  • oppure Firebase Auth (signInWithCredential) dopo il token Google

Il package UI resta neutro e non forza un SDK specifico.

Author #

Created by Elia Zavatta.

License #

MIT

0
likes
150
points
66
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Reusable, modern auth/profile bottom sheet for Flutter with Google-first login CTA.

Repository (GitHub)
View/report issues

Topics

#flutter #authentication #bottom-sheet #login #ui

License

MIT (license)

Dependencies

flutter

More

Packages that depend on smooth_auth_sheet