,
Colors.deepPurple,
Colors.deepPurple,
Colors.deepPurple,
Colors.black,
],
),
),
child: const Padding(
padding: EdgeInsets.symmetric(horizontal: 15),
child: Center(
child: Text(
'WEATHER',
style: TextStyle(
fontSize: 30,
fontWeight: FontWeight.w800,
color: Colors.white,
),
),
),
),
),
),
SizedBox(
width: 100,
child: Row(
children: [
IconButton(
onPressed: () async {
final city = await Navigator.of(context)
.pushNamed(SearchScreen.routeName);
if (city != null) {
getWeather(city as String);
}
},
icon: const Icon(
Icons.search,
color: Colors.white,
size: 25,
),
),
IconButton(
onPressed: () {
Navigator.of(context).pushNamed(SettingsScreen.routeName);
},
icon: const Icon(
Icons.settings,
color: Colors.white,
size: 25,
),
),
],
),
),
],
),
);
}
}
Foydalanilgan adabiyotlarlar va internet manbalar:
1. G. Blake Meike, Mike Dunn, Programming Android with Kotlin, O’Reilly Media, 2021, 532 p
https://developer.android.com/docs
https://www.tutorialkart.com/kotlin-android/
https://github.com
Do'stlaringiz bilan baham: |