|
|
səhifə | 8/9 | tarix | 17.06.2023 | ölçüsü | 1,58 Mb. | | #132099 |
| “Mobil ilovalarni ishlab chiqish” fanidan
9 / 5) + 32).toStringAsFixed(0)}℉';
}
return '${temp.toStringAsFixed(0)}℃';
}
@override
Widget build(BuildContext context) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
_showTemperature(widget.weather.temperature),
style: const TextStyle(
color: Colors.white,
fontSize: 70,
height: 0.1,
),
),
Row(
children: [
Image.network(
'https://openweathermap.org/img/wn/${widget.weather.icon}.png',
width: 60,
height: 60,
),
Text(
widget.weather.main,
style: const TextStyle(
color: Colors.white,
fontSize: 30,
),
),
],
),
],
);
}
}
import 'package:flutter/material.dart';
import 'package:weather_app/presentation/screens/settings_screen.dart';
import '../screens/search_screen.dart';
class WeatherMenu extends StatelessWidget {
final Function getWeather;
const WeatherMenu({Key? key, required this.getWeather}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.only(top: 45),
child: Row(
children: [
const SizedBox(width: 100),
Container(
alignment: Alignment.center,
width: MediaQuery.of(context).size.width - 200,
height: 50,
child: Container(
width: MediaQuery.of(context).size.width - 240,
height: 40,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
gradient: const LinearGradient(
colors: [
Colors.black
Dostları ilə paylaş: |
|
|