-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
95 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export 'location/location_bloc.dart'; | ||
export 'network/network_cubit.dart'; | ||
export 'theme/theme_cubit.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export 'location_service_disabled.dart'; | ||
export 'permission_denied_widget.dart'; | ||
export 'waiting_permission_widget.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export 'failure_widget.dart'; | ||
export 'loading_widget.dart'; | ||
export 'primary_button.dart'; | ||
export 'temperature_text.dart'; | ||
export 'weather_image.dart'; |
5 changes: 2 additions & 3 deletions
5
lib/features/daily_forecast/screens/daily_forecast_screen.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
lib/features/daily_forecast/screens/widgets/daily_forecast_widget.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
lib/features/daily_forecast/screens/widgets/date_widget.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
part of 'widgets.dart'; | ||
|
||
class DataWidget extends StatelessWidget { | ||
const DataWidget({ | ||
super.key, | ||
required this.apparentTemperature, | ||
required this.icon, | ||
}); | ||
|
||
final String apparentTemperature; | ||
final String icon; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Row( | ||
children: [ | ||
SvgPicture.asset( | ||
icon, | ||
width: AppDimensions.width! * 0.07, | ||
fit: BoxFit.cover, | ||
), | ||
const SizedBox(width: 5), | ||
Text( | ||
apparentTemperature, | ||
style: AppTypography.medium12(), | ||
), | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import 'package:clima/core/utils/utils.dart'; | ||
import 'package:clima/features/daily_forecast/data/models/daily_weather_model.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_svg/svg.dart'; | ||
import 'package:lottie/lottie.dart'; | ||
|
||
import '../../../../core/animations/fade_slide_animation.dart'; | ||
import '../../../../core/common/temperature_text.dart'; | ||
import '../../../../core/helper/date_helper.dart'; | ||
|
||
part 'daily_forecast_widget.dart'; | ||
part 'daily_widget.dart'; | ||
part 'date_widget.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
lib/features/hourly_forecast/screens/hourly_forecast_screen.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 1 addition & 9 deletions
10
lib/features/hourly_forecast/screens/widgets/custom_app_bar.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
lib/features/hourly_forecast/screens/widgets/day_and_night_widget.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
lib/features/hourly_forecast/screens/widgets/forecast_info_widget.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
lib/features/hourly_forecast/screens/widgets/hourly_forecast_details.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 1 addition & 11 deletions
12
lib/features/hourly_forecast/screens/widgets/hourly_forecast_widget.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
lib/features/hourly_forecast/screens/widgets/news_widget.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:clima/features/hourly_forecast/data/models/weather_daily_model.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_bloc/flutter_bloc.dart'; | ||
import 'package:flutter_svg/flutter_svg.dart'; | ||
import 'package:intl/intl.dart'; | ||
import 'package:lottie/lottie.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
import '../../../../core/common/temperature_text.dart'; | ||
import '../../../../core/common/weather_image.dart'; | ||
import '../../../../core/helper/location_helper.dart'; | ||
import '../../../../core/utils/utils.dart'; | ||
import '../../../home/cubit/home_cubit.dart'; | ||
import '../../data/models/forecast_info_model.dart'; | ||
import '../../data/models/weather_hourly_model.dart'; | ||
import '../../data/models/weather_news_model.dart'; | ||
|
||
part 'custom_app_bar.dart'; | ||
part 'day_and_night_widget.dart'; | ||
part 'forecast_info_widget.dart'; | ||
part 'hourly_forecast_details.dart'; | ||
part 'hourly_forecast_widget.dart'; | ||
part 'news.dart'; | ||
part 'news_widget.dart'; |