national_assembly_france_hemicycle 0.5.1 national_assembly_france_hemicycle: ^0.5.1 copied to clipboard
Draw a French National Assembly. Depends on hemicycle Flutter package.
The purpose of this Flutter package depends on hemicycle Flutter package but is specific to French National Assembly.
With surrounding Group colors | Without surrounding Group colors |
Features #
You can give a local Path from your app to the JSON raw from open data (soon : URL to online JSON)... No need to reformat the JSON from Assemblee National open data website.
Usage #
Just type OpenAssembleeVoteDisplayer().drawVoteHemicycle
and submit local or remote JSON as a Path.
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath(localPath:"assets/example_json/VTANR5L15V4417.json");
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath(remotePath:"https://www.example.com/assets/example_json/VTANR5L15V4419.json");
You can choose to display or not the surrounding Arc of Group colors by submitting useGroupSector
. By default, it is set to false.
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath(localPath:"theJson.json");
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath(localPath:"theJson.json", useGroupSector: true);
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath(localPath:"theJson.json", useGroupSector: false);
NOTA BENE : #
Since we are introducing localPath:
and remotePath:
, drawVoteHemicycle
is deprecated and replaced by drawVoteHemicycleFromPath
.
@Deprecated('Use drawVoteHemicycleFromPath instead')
OpenAssembleeVoteDisplayer().drawVoteHemicycle("assets/example_json/VTANR5L15V4417.json");
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath(localPath:"assets/example_json/VTANR5L15V4417.json");
Additional information #
Further infos soon ;-)