national_assembly_france_hemicycle library

Extensions

OtherExtension on String

Properties

agirBleu MaterialColor
DARK BLUE color for Agir (legislature 15)
getter/setter pair
color Map<int, Color>
getter/setter pair
groupsLegis15 List<GroupTranscode>
Legislature XV : 2017-2022
getter/setter pair
groupsLegis16 List<GroupTranscode>
Legislature XVI : 2022-...
getter/setter pair
horizonsBleu MaterialColor
DARK BLUE color for Horizons (legislature 16)
getter/setter pair
intergroupsLegis16 List<IntergroupTranscode>
Legislature XVI : 2022-...
getter/setter pair
joursCourts List<String>
Used by dateStringFormatter : short days French
getter/setter pair
joursLongs List<String>
Used by dateStringFormatter : long days French
getter/setter pair
legisGroupsSubstitute List<List>
getter/setter pair
liotRose MaterialColor
LIGHT PINK color for LIOT (legislature 15)
getter/setter pair
modemJaune MaterialColor
YELLOW color for MoDem
getter/setter pair
moisCourts List<String>
Used by dateStringFormatter : short months French
getter/setter pair
moisLongs List<String>
Used by dateStringFormatter : long months French
getter/setter pair
nonInscritGris MaterialColor
GREY color for Non Inscrits
getter/setter pair
nupesJaune MaterialColor
YELLOW color for NUPES (legislature 16)
getter/setter pair
nupesRose MaterialColor
DARK PINK color for NUPES component (legislature 16)
getter/setter pair
nupesRouge MaterialColor
RED color for NUPES component (legislature 16)
getter/setter pair
nupesVert MaterialColor
GREEN color for NUPES component (legislature 16)
getter/setter pair
nupesViolet MaterialColor
PURPLE color for NUPES component (legislature 16)
getter/setter pair
renaissanceOrange MaterialColor
ORANGE color for Renaissance
getter/setter pair
republicainsBleu MaterialColor
BLUE color for Les Republicains
getter/setter pair
rnBleu MaterialColor
DARKER BLUE color for RN (legislature 16)
getter/setter pair
territoiresRose MaterialColor
LIGHT PINK color for Territoires de Progres (legislature 15)
getter/setter pair
timingInHoursBeforeRefresh int
getter/setter pair
udiBleu MaterialColor
DARK BLUE color for UDI (legislature 15)
getter/setter pair

Functions

checkPrefs() Future<bool>
circularWait(Color waitColor) Padding
Generate a CircularProgressIndicator with a received Random color...
cleanRawHtmlString(String dirtyHtmlString) String
dateFormatter(String dateString, {String dateSeparator = "/", String hourSeparator = ":", bool noHour = false, String format = "DMY"}) DateTime
Convert a String dateString to DateTime
dateStringFormatter(DateTime? date, {String dateSeparator = "/", String hourSeparator = ":", bool dateOnly = false, bool hourOnly = false, bool longVersion = false, bool monthVersion = false, bool dayVersion = false}) String
Convert a DateTime date to String (in French)
getListOfAmendements({required Directory mainDirectory}) Future<List<AmendementFromJson>>
Get the Amendements JSON files in designated directory and convert to AmendementFromJson:
getListOfDeputes({String pathToDeputes = "https://data.assemblee-nationale.fr/static/openData/repository/16/amo/deputes_actifs_csv_opendata/liste_deputes_excel.csv", required Directory mainDirectory, bool forceRefresh = false}) Future<List<DeputesFromCsv>>
If needed, download the CSV Excel-format from National Assembly open data. In any case, convert downloaded data :
getListOfDossiersLegislatifs({required Directory mainDirectory}) Future<List<DossierLegislatifFromJson>>
Get the Dossiers Legislatifs JSON files in designated directory and convert to DossierLegislatifFromJson:
getListOfProjetsLois({required Directory mainDirectory}) Future<List<ProjetLoiFromJson>>
Get the Projets Lois JSON files in designated directory and convert to ProjetLoiFromJson:
getListOfVotes({required Directory mainDirectory}) Future<List<ScrutinFromJson>>
Get the Scrutin JSON files in designated directory and convert to ScrutinFromJson:
getUpdatedDatasFromAssembly({String pathToDossiers = "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/dossiers_legislatifs/Dossiers_Legislatifs.json.zip", String pathToVotes = "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/scrutins/Scrutins.json.zip", String pathToAmendements = "https://data.assemblee-nationale.fr/static/openData/repository/16/loi/amendements_div_legis/Amendements.json.zip", required Directory destinationDirectory, bool forceRefresh = false}) Future<bool>
Download the ZIP archives from National Assembly open data and extract in designated directory :
limitLengthOfString(String originalString, int maxLength) String
randomColor() Color
Generate a Random color among the different custom colors defined...
theDivider({bool big = false}) List<Widget>
updatePrefs() → void