Skip to content

Commit

Permalink
Upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanogunleye committed May 18, 2024
1 parent 1154990 commit 1ea555c
Show file tree
Hide file tree
Showing 10 changed files with 315 additions and 295 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

env:
FLUTTER_VERSION: 3.7.1
FLUTTER_VERSION: 3.19.3
FLUTTER_CHANNEL: 'stable'

jobs:
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,15 @@ pub-get: clean ## Install referenced packages
pub-build: pub-get
flutter pub run build_runner build --delete-conflicting-outputs

pub-lint: pub-build
flutter analyze
pub-lint: pub-build lint

pub-test: pub-lint
flutter test test/*
pub-test: pub-lint test

.PHONY: test
test:
flutter test test/*

.PHONY: lint
lint:
flutter analyze

Expand Down Expand Up @@ -64,6 +63,7 @@ force-push-beta:

reset-beta: checkout-beta reset-feature-beta force-push-beta

.PHONY: all
all: pub-test

refresh-tags:
Expand Down
12 changes: 4 additions & 8 deletions lib/model/draw_a_card_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,11 @@ class DrawCardResponse extends DeckOfCardsResponse {
List<PlayingCard>? cards;

DrawCardResponse({
bool? success,
String? deckId,
int? remaining,
super.success,
super.deckId,
super.remaining,
this.cards,
}) : super(
success: success,
deckId: deckId,
remaining: remaining,
);
});

factory DrawCardResponse.fromJson(Map<String, dynamic> json) =>
_$DrawCardResponseFromJson(json);
Expand Down
12 changes: 4 additions & 8 deletions lib/model/piles_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,12 @@ class PilesResponse extends DeckOfCardsResponse {
List<PlayingCard>? cards;

PilesResponse({
bool? success,
String? deckId,
int? remaining,
super.success,
super.deckId,
super.remaining,
this.piles,
this.cards,
}) : super(
success: success,
deckId: deckId,
remaining: remaining,
);
});

factory PilesResponse.fromJson(Map<String, dynamic> json) =>
_$PilesResponseFromJson(json);
Expand Down
12 changes: 4 additions & 8 deletions lib/model/shuffle_cards_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ class DeckResponse extends DeckOfCardsResponse {
bool? shuffled;

DeckResponse({
bool? success,
String? deckId,
int? remaining,
super.success,
super.deckId,
super.remaining,
this.shuffled,
}) : super(
success: success,
deckId: deckId,
remaining: remaining,
);
});

factory DeckResponse.fromJson(Map<String, dynamic> json) =>
_$DeckResponseFromJson(json);
Expand Down
6 changes: 3 additions & 3 deletions lib/screen/game_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'package:share_plus/share_plus.dart';
import 'package:uuid/uuid.dart';

class GameScreen extends StatefulWidget {
const GameScreen({Key? key}) : super(key: key);
const GameScreen({super.key});

@override
State<GameScreen> createState() => _GameScreenState();
Expand Down Expand Up @@ -215,9 +215,9 @@ class _GameScreenState extends State<GameScreen> {
builder: (BuildContext context) {
return AlertDialog(
title: const Text('Could not enter room'),
content: Column(
content: const Column(
mainAxisSize: MainAxisSize.min,
children: const [
children: [
Text('Fuck'),
],
),
Expand Down
4 changes: 2 additions & 2 deletions lib/screen/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import 'package:karma_palace/constants/text_constants.dart';

class HomeScreen extends StatefulWidget {
const HomeScreen({
Key? key,
}) : super(key: key);
super.key,
});

@override
State<HomeScreen> createState() => _HomeScreenState();
Expand Down
2 changes: 1 addition & 1 deletion lib/service/card_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CardService {
_logger.d(response);
return handler.next(response);
},
onError: (DioError e, ErrorInterceptorHandler handler) {
onError: (DioException e, ErrorInterceptorHandler handler) {
_logger.e('DioError', e.error);
return handler.next(e);
},
Expand Down
Loading

0 comments on commit 1ea555c

Please sign in to comment.