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

App will expire or the user will not able to user after expiry date finishes. Best for freelancing client trial builds.

example/lib/main.dart

import 'package:expire_it/expire_it.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
        body: ExpireBuilder(
          controller: UserDefineExpireController(
            expiryDate: DateTime.now().subtract(const Duration(hours: 1)),
          ),
          expireBuilder: (context) {
            return const Center(
              child: Text("Expired"),
            );
          },
          builder: (context) {
            return const Center(
              child: Text("Home screen"),
            );
          },
          loadingBuilder: (context) {
            return const Center(
              child: CircularProgressIndicator(),
            );
          },
        ),
      ),
    );
  }
}
8
likes
0
pub points
38%
popularity

Publisher

verified publisherraysummee.com

App will expire or the user will not able to user after expiry date finishes. Best for freelancing client trial builds.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, ntp

More

Packages that depend on expire_it