national_assembly_france_hemicycle 0.4.5 national_assembly_france_hemicycle: ^0.4.5 copied to clipboard
Draw a French National Assembly. Depends on hemicycle Flutter package.
example/national_assembly_france_hemicycle_example.dart
// Copyright 2022 1•2•7•8 réalisation(s). All rights reserved.
// Use of this source code is governed by a GNU-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import '../lib/attic/votes_displayer.dart';
void main() => runApp(OpenAssembleeExample());
class OpenAssembleeExample extends StatefulWidget {
@override
_OpenAssembleeExampleState createState() => _OpenAssembleeExampleState();
}
class _OpenAssembleeExampleState extends State<OpenAssembleeExample> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(children: <Widget>[
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath(
localPath: "assets/example_json/VTANR5L15V4417.json",
useGroupSector: true),
Padding(padding: EdgeInsets.all(20)),
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath(
localPath: "assets/example_json/VTANR5L15V4418.json",
useGroupSector: true),
Padding(padding: EdgeInsets.all(20)),
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath(
localPath: "assets/example_json/VTANR5L15V4419.json",
useGroupSector: true),
]),
);
}
}