Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 0 additions & 144 deletions lib/example/LoginPage/login_page_example.dart

This file was deleted.

59 changes: 0 additions & 59 deletions lib/example/MiCard/my_card_page_example.dart

This file was deleted.

31 changes: 0 additions & 31 deletions lib/example/MiCard/widgets/details_row.dart

This file was deleted.

14 changes: 6 additions & 8 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import 'package:flutter/material.dart';
import 'screens/homescreen.dart';

void main() {
runApp(const MainApp());
runApp(const MyApp());
}

class MainApp extends StatelessWidget {
const MainApp({super.key});
class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Center(
child: Text('Hello World!'),
),
),
debugShowCheckedModeBanner: false,
home: HomePage(),
);
}
}
51 changes: 51 additions & 0 deletions lib/model/weather_pred_model.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import 'package:flutter/material.dart';

class WeatherPredModel {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent use of the model.

final String dayName;
final String temperature;
final IconData icon;

const WeatherPredModel({
required this.dayName,
required this.temperature,
required this.icon,
});
}

List<WeatherPredModel> weatherPredList = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good way to add dummy data. Very useful

const WeatherPredModel(
dayName: 'Monday',
temperature: '10°',
icon: Icons.wb_cloudy_outlined,
),
const WeatherPredModel(
dayName: 'Tuesday',
temperature: '12°',
icon: Icons.wb_cloudy_outlined,
),
const WeatherPredModel(
dayName: 'Wednesday',
temperature: '14°',
icon: Icons.wb_cloudy_outlined,
),
const WeatherPredModel(
dayName: 'Thursday',
temperature: '16°',
icon: Icons.wb_sunny_outlined,
),
const WeatherPredModel(
dayName: 'Friday',
temperature: '18°',
icon: Icons.wb_sunny_outlined,
),
const WeatherPredModel(
dayName: 'Saturday',
temperature: '20°',
icon: Icons.wb_sunny_outlined,
),
const WeatherPredModel(
dayName: 'Sunday',
temperature: '22°',
icon: Icons.wb_sunny_outlined,
),
];
Loading