autofill_helper 0.0.2 copy "autofill_helper: ^0.0.2" to clipboard
autofill_helper: ^0.0.2 copied to clipboard

discontinued

Autofill functions

example/lib/main.dart

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

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

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

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

class _MyAppState extends State<MyApp> {
  String _platformVersion = 'Unknown';

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

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<bool> saveCreds() async {
    try {
      await AutofillHelper.saveCredentials("", "", "");
      return true;
    } on PlatformException {
      return false;
    }
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Text(''),
        ),
      ),
    );
  }
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Autofill functions

Homepage

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on autofill_helper