“Mobil ilovalarni ishlab chiqish” fanidan


Download 1.58 Mb.
bet8/9
Sana14.04.2023
Hajmi1.58 Mb.
#1358106
1   2   3   4   5   6   7   8   9
Bog'liq
1-lab mobil

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
Download 1.58 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling