national_assembly_france_hemicycle

Last updated:

0 purchases

national_assembly_france_hemicycle Image
national_assembly_france_hemicycle Images
Add to Cart

Description:

national assembly france hemicycle

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 or remote Path from your app to the JSON raw from open data, or download the whole JSON package from open data and process it... No need to reformat the JSON from Assemblee National open data website.
Usage #
Just type OpenAssembleeVoteDisplayer().drawVoteHemicycleFromPath 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");
copied to clipboard
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);
copied to clipboard
You can type OpenAssembleeVoteDisplayer().drawVoteHemicycleFromAppSupport and submit local [ScrutinFromJson].
Directory? _appSupportDirectory = await getApplicationSupportDirectory();
List<ScrutinFromJson> allVotes = getListOfVotes(mainDirectory: _appSupportDirectory);
for (ScrutinFromJson vote in allVotes)
OpenAssembleeVoteDisplayer().drawVoteHemicycleFromAppSupport(vote: vote);
copied to clipboard
Download the whole JSON files from National Assembly Open Data to process :
Directory? _appSupportDirectory = await getApplicationSupportDirectory();

getUpdatedDatasFromAssembly(
destinationDirectory: _appSupportDirectory);
copied to clipboard
In case the URL is changed for any reason, you can specify it...
getUpdatedDatasFromAssembly(
pathToDossiers:
"https://data.assemblee-nationale.fr/static/openData/repository/16/loi/dossiers_legislatifs/Dossiers_Legislatifs.json.zip",
pathToVotes:
"https://data.assemblee-nationale.fr/static/openData/repository/16/loi/scrutins/Scrutins.json.zip",
pathToAmendements:
"https://data.assemblee-nationale.fr/static/openData/repository/16/loi/amendements_div_legis/Amendements.json.zip",
destinationDirectory: _appSupportDirectory);
copied to clipboard
Then, process from downloaded files :
List<DossierLegislatifFromJson> _listProcessed = getListOfDossiersLegislatifs(
mainDirectory: _appSupportDirectory);

List<ProjetLoiFromJson> _listProcessed = getListOfProjetsLois(
mainDirectory: _appSupportDirectory);

`List<AmendementFromJson> _listProcessed = getListOfAmendements(
mainDirectory: _appSupportDirectory);

List<ScrutinFromJson> _listProcessed = getListOfVotes(
mainDirectory: _appSupportDirectory);
copied to clipboard
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");
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.