todolegal_identity 0.1.1 copy "todolegal_identity: ^0.1.1" to clipboard
todolegal_identity: ^0.1.1 copied to clipboard

TodoLegal Identity SDK — embedded onboarding and redirected document signing for partner Flutter apps.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'screens/sheet_screen.dart';
import 'theme/tl_wallet_theme.dart';

void main() => runApp(const ExampleHostApp());

/// A bare host: no Riverpod, no go_router. Only Flutter's own
/// `Navigator`/`MaterialApp`, to prove the SDK doesn't require either.
///
/// Restyled for APP-5 to *replicate* the "BLU Firma Digital" prototype's
/// actual screens and workflow — sheet → inbox → document review →
/// declaration of will → method choice → onboarding-if-needed → signing
/// handoff → signing progress → receipt — per
/// `specs/demo-readiness-spine/design.md` §5 (corrected 2026-09-01: the
/// prototype is the literal template to implement, not a style reference —
/// see APP-5's QA rejection). Confined entirely to this `example/` app:
/// nothing in `lib/src/internal/screens/` changed.
class ExampleHostApp extends StatelessWidget {
  const ExampleHostApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'TL Wallet (demo)',
      debugShowCheckedModeBanner: false,
      theme: TLWalletTheme.themeData(),
      home: SheetScreen(),
    );
  }
}