dvote 0.12.11-xdai copy "dvote: ^0.12.11-xdai" to clipboard
dvote: ^0.12.11-xdai copied to clipboard

outdated

Decentralized, end-to-end verifiable governance platform client library for Dart.

example/lib/main.dart

import 'package:dvote_example/gateway.dart';
import 'package:dvote_example/metadata.dart';
import 'package:flutter/material.dart';
// import "./metadata.dart";
// import "./gateway.dart";
import "./register.dart";
// import "./wallets.dart";
// import "./signatures.dart";
// import "./vote.dart";

void main() async {
  runApp(MaterialApp(
    title: 'DVote Flutter',
    home: ExampleApp(),
  ));
}

class ExampleApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('DVote Flutter'),
      ),
      body: ListView(
        children: <Widget>[
          Card(
            child: ListTile(
              leading: FlutterLogo(size: 72.0),
              title: Text('Gateway'),
              subtitle: Text('Showing Gateways Info'),
              isThreeLine: true,
              onTap: () => Navigator.push(context,
                  MaterialPageRoute(builder: (context) => GatewayScreen())),
            ),
          ),
          Card(
            child: ListTile(
              leading: FlutterLogo(size: 72.0),
              title: Text('Metadata'),
              subtitle: Text('Get Entity Metadata'),
              isThreeLine: true,
              onTap: () => Navigator.push(context,
                  MaterialPageRoute(builder: (context) => MetadataScreen())),
            ),
          ),
          Card(
            child: ListTile(
              leading: FlutterLogo(size: 72.0),
              title: Text('Register'),
              subtitle: Text('Register User to Backend'),
              isThreeLine: true,
              onTap: () => Navigator.push(context,
                  MaterialPageRoute(builder: (context) => RegisterScreen())),
            ),
          ),
        ],
      ),
    );
  }
}
2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Decentralized, end-to-end verifiable governance platform client library for Dart.

Homepage
Repository (GitLab)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

bip32, bip39, convert, crypto, dvote_native, flutter, hex, http, pinenacl, protobuf, web3dart

More

Packages that depend on dvote