dvote 0.12.17 dvote: ^0.12.17 copied to clipboard
Decentralized, end-to-end verifiable governance platform client library for 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())),
),
),
],
),
);
}
}