admin 0.0.4

Flutter Android iOS

plugin for android admin.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
 

  @override
  void initState() {
    super.initState();
    Admin.enable();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
 

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Column(
             mainAxisAlignment: MainAxisAlignment.spaceEvenly,
             children: [
               FlatButton(
                 color: Colors.pinkAccent,
               child: Text("lock"),
               onPressed: (){Admin.setup("com.example.getinfo");},
             ),
              FlatButton(
                 color: Colors.pinkAccent,
               child: Text("setpassword"),
               onPressed: (){Admin.lock();},
             ),
              FlatButton(
                 color: Colors.pinkAccent,
               child: Text("DisableCamera"),
               onPressed: (){Admin.uninstall("com.facebook.lite");},
             ),
             ]
          ),
        ),
      ),
    );
  }
}
1
likes
70
pub points
32%
popularity

plugin for android admin.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

2017ashwin@gmail.com

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on admin