Skip to content

Commit

Permalink
format: fix lint erros
Browse files Browse the repository at this point in the history
  • Loading branch information
baimamboukar committed Nov 10, 2023
1 parent 65f3e73 commit 722d4ad
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 20 deletions.
Binary file added assets/images/air-pollution 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/weather 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class _CosmoSenseState extends ConsumerState<CosmoSense> {
useMaterial3: true,
textTheme: GoogleFonts.exoTextTheme(
const TextTheme(
bodyText1: TextStyle(color: Colors.white, fontFamily: "Exo"),
bodyLarge: TextStyle(color: Colors.white, fontFamily: "Exo"),
).apply(bodyColor: Palette.white, displayColor: Palette.white),
),
fontFamily: "Exo",
Expand Down
2 changes: 1 addition & 1 deletion lib/src/data/models/spacex_launch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Failures {
final dynamic altitude;
final String? reason;
const Failures({this.time, this.altitude, this.reason});
Failures copyWith({int? time, dynamic? altitude, String? reason}) {
Failures copyWith({int? time, dynamic altitude, String? reason}) {
return Failures(
time: time ?? this.time,
altitude: altitude ?? this.altitude,
Expand Down
3 changes: 1 addition & 2 deletions lib/src/ui/screens/authentication/signin.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';


// singin screen with fogot password option
6 changes: 3 additions & 3 deletions lib/src/ui/screens/launch_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ class LaunchDetails extends ConsumerWidget {
const SizedBox(
height: 4,
),
Row(
children: const [
const Row(
children: [
Text(
"Launched by SpaceX",
style: TextStyle(
Expand All @@ -144,7 +144,7 @@ class LaunchDetails extends ConsumerWidget {
SizedBox(
width: 4,
),
Badge(
Indicator(
success: true,
)
],
Expand Down
6 changes: 3 additions & 3 deletions lib/src/ui/screens/shared_scaffold/astrobips.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ class NasaImage extends ConsumerWidget {
const SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 12),
const Padding(
padding: EdgeInsets.symmetric(horizontal: 12),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: const [
children: [
Text(
"copyrights",
style: TextStyle(
Expand Down
13 changes: 6 additions & 7 deletions lib/src/ui/widgets/animated_list.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import 'package:auto_route/auto_route.dart';
import 'package:cosmosense/src/data/models/spacex_launch.dart';
import 'package:cosmosense/src/router/router.gr.dart' as routes;
import 'package:cosmosense/src/ui/widgets/widgets.dart';
import 'package:cosmosense/src/utils/date_parser.dart';
import 'package:cosmosense/src/utils/palette.dart';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';

import 'package:cosmosense/src/router/router.gr.dart' as routes;

class FadeAnimatedList extends ConsumerStatefulWidget {
final List<SpaceXlaunch> launches;
const FadeAnimatedList({
Expand Down Expand Up @@ -128,11 +127,11 @@ class _FadeAnimatedListState extends ConsumerState<FadeAnimatedList> {
const SizedBox(
width: 10,
),
Badge(
success: launch.success ?? true,
),
// Indicator(
// success: launch.upcoming ?? false)
// Badge(
// success: launch.success ?? true,
// ),
Indicator(
success: launch.upcoming ?? false)
],
),
const SizedBox(
Expand Down
5 changes: 3 additions & 2 deletions lib/src/ui/widgets/circular_list.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// ignore_for_file: library_private_types_in_public_api

import 'package:circle_wheel_scroll/circle_wheel_scroll_view.dart' as wheel;
import 'package:cosmosense/src/data/models/planet.dart';
import 'package:cosmosense/src/ui/screens/screens.dart';
import 'package:cosmosense/src/ui/widgets/widgets.dart';
import 'package:flutter/material.dart';

import 'package:circle_wheel_scroll/circle_wheel_scroll_view.dart' as wheel;

class CircularListPage extends StatefulWidget {
const CircularListPage({super.key});

Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/theme/dark_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ final darkTheme = ThemeData(
useMaterial3: true,
textTheme: GoogleFonts.exoTextTheme(
const TextTheme(
bodyText1: TextStyle(color: Colors.white, fontFamily: "Exo"),
bodyLarge: TextStyle(color: Colors.white, fontFamily: "Exo"),
).apply(bodyColor: Palette.white, displayColor: Palette.white),
),
fontFamily: "Exo",
Expand Down

0 comments on commit 722d4ad

Please sign in to comment.