mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 00:21:19 +00:00
Fix layout issue + languages filter (according to config but neet refresh of get config (via mqtt))
This commit is contained in:
parent
63d435ea0e
commit
e16a298cec
@ -13,6 +13,7 @@ class LanguageSelection extends StatefulWidget {
|
||||
}
|
||||
|
||||
class _LanguageSelection extends State<LanguageSelection> with TickerProviderStateMixin {
|
||||
List<String> languagesEnable;
|
||||
Size sizeScreen = new Size(1080.0, 1920.0); // Tablet resolution
|
||||
|
||||
double flagSize = 60;
|
||||
@ -54,6 +55,7 @@ class _LanguageSelection extends State<LanguageSelection> with TickerProviderSta
|
||||
final appContext = Provider.of<AppContext>(context);
|
||||
Size size = MediaQuery.of(context).size;
|
||||
selectedLanguage = (appContext.getContext() as TabletAppContext).language;
|
||||
languagesEnable = (appContext.getContext() as TabletAppContext).configuration.languages;
|
||||
|
||||
return Stack(
|
||||
children: [
|
||||
@ -86,7 +88,7 @@ class _LanguageSelection extends State<LanguageSelection> with TickerProviderSta
|
||||
ListView(
|
||||
children: [
|
||||
if(minimized) ... [
|
||||
for(var language in languages.where((element) => element.toUpperCase() != selectedLanguage ))
|
||||
for(var language in languagesEnable.where((element) => element.toUpperCase() != selectedLanguage ))
|
||||
InkWell(
|
||||
onTap: () {
|
||||
setState(() {
|
||||
|
||||
@ -69,7 +69,8 @@ class _MainViewWidget extends State<MainViewWidget> {
|
||||
break;
|
||||
}
|
||||
return Scaffold(
|
||||
body: Column(
|
||||
body: SingleChildScrollView(
|
||||
child: Column(
|
||||
children: [
|
||||
Container(
|
||||
width: size.width,
|
||||
@ -147,6 +148,7 @@ class _MainViewWidget extends State<MainViewWidget> {
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
|
||||
floatingActionButton: Container(
|
||||
height: 130.0,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user