“Mobil ilovalarni ishlab chiqish” fanidan



Yüklə 1,58 Mb.
səhifə8/9
tarix17.06.2023
ölçüsü1,58 Mb.
#132099
1   2   3   4   5   6   7   8   9
“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
Yüklə 1,58 Mb.

Dostları ilə paylaş:
1   2   3   4   5   6   7   8   9




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin