expire_it 0.2.0 copy "expire_it: ^0.2.0" to clipboard
expire_it: ^0.2.0 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() async {
  WidgetsFlutterBinding.ensureInitialized();
  ExpireIt.controller = UserDefineExpireController(expiryDate: DateTime(2022));
  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: ExpireIt(
          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
160
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

Documentation

API reference

License

MIT (license)

Dependencies

flutter, ntp

More

Packages that depend on expire_it