Fix for localeButton not updating
This commit is contained in:
parent
726cc6d5e7
commit
828f353d26
@ -25,7 +25,12 @@ class LocaleButton extends StatelessWidget {
|
|||||||
borderRadius: BorderRadius.all(Radius.circular($styles.corners.md)),
|
borderRadius: BorderRadius.all(Radius.circular($styles.corners.md)),
|
||||||
),
|
),
|
||||||
padding: EdgeInsets.all($styles.insets.sm),
|
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));
|
||||||
|
},
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user