Skip to content
Snippets Groups Projects
Commit a89f4c9f authored by Anager's avatar Anager
Browse files

there is problem with shared preferences

parent e5360b7c
No related branches found
No related tags found
1 merge request!2Home page chaitanya
...@@ -40,7 +40,7 @@ class DropdownSettingButton extends StatefulWidget { ...@@ -40,7 +40,7 @@ class DropdownSettingButton extends StatefulWidget {
class _DropdownSettingButtonState extends State<DropdownSettingButton> { class _DropdownSettingButtonState extends State<DropdownSettingButton> {
bool _expanded = false; bool _expanded = false;
String currentCity = "None"; String currentCity = "Die aktuelle Stadt";
String getCurrentCity(){ String getCurrentCity(){
getCurrentCityFromSharedPreferences(); getCurrentCityFromSharedPreferences();
...@@ -68,8 +68,9 @@ class _DropdownSettingButtonState extends State<DropdownSettingButton> { ...@@ -68,8 +68,9 @@ class _DropdownSettingButtonState extends State<DropdownSettingButton> {
canTapOnHeader: true, canTapOnHeader: true,
isExpanded: _expanded, isExpanded: _expanded,
headerBuilder: (context, isExpanded){ headerBuilder: (context, isExpanded){
String city = getCurrentCity();
return ListTile( return ListTile(
title: Text("Die aktuelle Stadt: " + getCurrentCity(), title: Text(city,
style: TextStyle(fontSize: 20, color: Color.fromRGBO( style: TextStyle(fontSize: 20, color: Color.fromRGBO(
1, 1, 1, 0.5)) 1, 1, 1, 0.5))
), ),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment