android_signature 0.0.3 copy "android_signature: ^0.0.3" to clipboard
android_signature: ^0.0.3 copied to clipboard

Android signature provider for Flutter.

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:android_signature/android_signature.dart';

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

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

class _MyAppState extends State<MyApp> {

  Future<String>? signature;
  @override
  void initState() {
    super.initState();
    Future.delayed(Duration.zero, () async {
      setState(() {
        signature = AndroidSignature.signature();
      });
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: FutureBuilder(
            future: signature,
            builder: (context, snapshot) {
              print("${snapshot.data}");
              return Text("${snapshot.data}");
            }
          ),
        ),
      ),
    );
  }
}
1
likes
120
points
180
downloads

Publisher

unverified uploader

Weekly Downloads

Android signature provider for Flutter.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on android_signature