Create a new file lib/screens/weather_screen.dart
and add the following code:
import 'package:flutter/material.dart';
class WeatherScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Weather App'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'City Name',
style: TextStyle(fontSize: 32, fontWeight: FontWeight.bold),
),
SizedBox(height: 16),
Text(
'25°C',
style: TextStyle(fontSize: 56),
),
SizedBox(height: 16),
Icon(
Icons.wb_sunny,
size: 100,
),
SizedBox(height: 16),
Text(
'Clear Sky',
style: TextStyle(fontSize: 24),
),
],
),
),
);
}
}