Tax model

This commit is contained in:
Hillel Coren 2023-04-18 11:07:54 +03:00
parent 07c132c0fe
commit a51787bf14
1 changed files with 14 additions and 0 deletions

View File

@ -148,6 +148,7 @@ class _TaxSettingsState extends State<TaxSettings> {
), ),
FormCard( FormCard(
isLast: true, isLast: true,
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
BoolDropdownButton( BoolDropdownButton(
iconData: MdiIcons.calculator, iconData: MdiIcons.calculator,
@ -166,6 +167,7 @@ class _TaxSettingsState extends State<TaxSettings> {
initialValue: taxData.version, initialValue: taxData.version,
), ),
*/ */
SizedBox(height: 16),
AppDropdownButton<String>( AppDropdownButton<String>(
labelText: localization.sellerSubregion, labelText: localization.sellerSubregion,
value: taxData.sellerSubregion, value: taxData.sellerSubregion,
@ -177,6 +179,18 @@ class _TaxSettingsState extends State<TaxSettings> {
.map((code) => .map((code) =>
DropdownMenuItem(child: Text(code), value: code)) DropdownMenuItem(child: Text(code), value: code))
.toList()), .toList()),
...taxData.regions.keys
.map((region) => Column(
children: [
Text(region),
/*
...taxData.regions[region].subregions.keys
.map((subregion) => Text(subregion))
.toList(),
*/
],
))
.toList(),
] ]
], ],
) )