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

there is problem with shared preferences

parent e5360b7c
Branches Deggendorf_App_1.0
No related tags found
1 merge request!2Home page chaitanya
......@@ -40,7 +40,7 @@ class DropdownSettingButton extends StatefulWidget {
class _DropdownSettingButtonState extends State<DropdownSettingButton> {
bool _expanded = false;
String currentCity = "None";
String currentCity = "Die aktuelle Stadt";
String getCurrentCity(){
getCurrentCityFromSharedPreferences();
......@@ -68,8 +68,9 @@ class _DropdownSettingButtonState extends State<DropdownSettingButton> {
canTapOnHeader: true,
isExpanded: _expanded,
headerBuilder: (context, isExpanded){
String city = getCurrentCity();
return ListTile(
title: Text("Die aktuelle Stadt: " + getCurrentCity(),
title: Text(city,
style: TextStyle(fontSize: 20, color: Color.fromRGBO(
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