Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump dependencies #109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
1 change: 0 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ linter:
flutter_style_todos: true
hash_and_equals: true
implementation_imports: true
invariant_booleans: true
iterable_contains_unrelated_type: true
join_return_with_assignment: true
leading_newlines_in_multiline_strings: true
Expand Down
Binary file modified assets/app/illustrations/contest_card.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 modified assets/app/illustrations/feed_card.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 modified assets/app/illustrations/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions lib/data/constants/styles.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ class AppStyles {
secondary: AppColors.primaryAccent,
),
textTheme: TextTheme(
headline1: h1,
headline2: h2,
headline4: h4,
headline5: h5,
headline6: h6,
displayLarge: h1,
displayMedium: h2,
headlineMedium: h4,
headlineSmall: h5,
titleLarge: h6,
),
scaffoldBackgroundColor: AppColors.white,
);
Expand Down
8 changes: 4 additions & 4 deletions lib/data/services/remote/api_service.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:developer';
import 'dart:io';

import 'package:dio/adapter.dart';
import 'package:dio/dio.dart';
import 'package:dio/io.dart';
import 'package:flutter/foundation.dart';
import 'package:get/get.dart' as nav;

Expand All @@ -15,9 +15,9 @@ class ApiService {
static void init() {
_channel = Dio()..options.contentType = Headers.formUrlEncodedContentType;
if (!kIsWeb) {
(_channel.httpClientAdapter as DefaultHttpClientAdapter)
.onHttpClientCreate = (client) => client
..badCertificateCallback = (cert, host, port) => true;
(_channel.httpClientAdapter as IOHttpClientAdapter).onHttpClientCreate =
(client) =>
client..badCertificateCallback = (cert, host, port) => true;
}
}

Expand Down
8 changes: 3 additions & 5 deletions lib/main_development.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ Future<void> main() async {
final hydratedStorage = await _initHydratedBloc();

// Zone for Hydrated Bloc and AppBlocObserver.
await HydratedBlocOverrides.runZoned(
() async => runApp(await Codephile.run()),
storage: hydratedStorage,
blocObserver: AppBlocObserver(),
);
HydratedBloc.storage = hydratedStorage;
Bloc.observer = AppBlocObserver();
runApp(await Codephile.run());
}

Future<void> _initHive() async {
Expand Down
8 changes: 3 additions & 5 deletions lib/main_production.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ void main() {
final hydratedStorage = await _initHydratedBloc();

// Zone for Hydrated Bloc and AppBlocObserver.
await HydratedBlocOverrides.runZoned(
() async => runApp(await Codephile.run()),
storage: hydratedStorage,
blocObserver: AppBlocObserver(),
);
HydratedBloc.storage = hydratedStorage;
Bloc.observer = AppBlocObserver();
runApp(await Codephile.run());
},
_onError,
);
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/components/widgets/empty_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class EmptyState extends StatelessWidget {
child: Text(
description,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.titleLarge,
),
),
],
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/core/bloc_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AppBlocObserver extends BlocObserver {
Sentry.captureException(
error,
stackTrace: stackTrace,
hint: bloc.runtimeType.toString(),
hint: Hint.withMap({'bloc': bloc.runtimeType.toString()}),
);
}
super.onError(bloc, error, stackTrace);
Expand Down
2 changes: 1 addition & 1 deletion lib/presentation/feed/feed_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class FeedScreen extends StatelessWidget {
backgroundColor: AppColors.white,
title: Text(
'Feed',
style: Theme.of(context).textTheme.headline4?.copyWith(
style: Theme.of(context).textTheme.headlineMedium?.copyWith(
fontSize: 22.sp,
),
),
Expand Down
10 changes: 5 additions & 5 deletions lib/presentation/feed/widgets/feed_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ class FeedCard extends StatelessWidget {
children: <Widget>[
Text(
'${feed.fullname!.trim()} solved',
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.titleLarge,
),
Text(
DateFormat('dd-MM-yyyy kk:mm').format(
feed.submissions![0].createdAt!,
),
style: Theme.of(context).textTheme.headline6,
style: Theme.of(context).textTheme.titleLarge,
),
],
),
Expand All @@ -96,7 +96,7 @@ class FeedCard extends StatelessWidget {
'${feed.name}',
style: Theme.of(context)
.textTheme
.headline4
.headlineMedium
?.copyWith(fontSize: 16.sp),
overflow: TextOverflow.ellipsis,
maxLines: 2,
Expand All @@ -108,7 +108,7 @@ class FeedCard extends StatelessWidget {
'on ',
style: Theme.of(context)
.textTheme
.headline6
.titleLarge
?.copyWith(fontSize: 12.sp),
),
CircleAvatar(
Expand All @@ -131,7 +131,7 @@ class FeedCard extends StatelessWidget {
),
style: Theme.of(context)
.textTheme
.headline6
.titleLarge
?.copyWith(fontSize: 12.sp),
overflow: TextOverflow.ellipsis,
),
Expand Down
Loading