flutter_secure 1.0.1 copy "flutter_secure: ^1.0.1" to clipboard
flutter_secure: ^1.0.1 copied to clipboard

A Package that provides you tools to make your flutter apps more secure

example/lib/main.dart

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

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: FutureBuilder<bool>(
            future: FlutterSecure().isRooted,
            builder: (context, snapshot) {
              if (snapshot.hasData) {
                return Text('isRooted: ${snapshot.data}');
              } else if (snapshot.hasError) {
                return Text('Error: ${snapshot.error}');
              } else {
                return const Text('Loading...');
              }
            },
          ),
        ),
      ),
    );
  }
}
23
likes
130
pub points
80%
popularity

Publisher

verified publisherdreamorbit.com

A Package that provides you tools to make your flutter apps more secure

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

dio, flutter, flutter_secure_storage, http, pigeon

More

Packages that depend on flutter_secure