Fix for localeButton not updating

This commit is contained in:
Eddie 2022-09-06 16:44:29 -06:00
parent 726cc6d5e7
commit 828f353d26

View File

@ -25,7 +25,12 @@ class LocaleButton extends StatelessWidget {
borderRadius: BorderRadius.all(Radius.circular($styles.corners.md)),
),
padding: EdgeInsets.all($styles.insets.sm),
child: Text($strings.localeSwapButton, style: $styles.text.btn.copyWith(color: $styles.colors.white)),
child: ValueListenableBuilder(
valueListenable: settingsLogic.currentLocale,
builder: (_, __, ___) {
return Text($strings.localeSwapButton, style: $styles.text.btn.copyWith(color: $styles.colors.white));
},
),
),
);
}