Skip to content

Commit

Permalink
Remove Android
Browse files Browse the repository at this point in the history
  • Loading branch information
salihgueler committed Sep 29, 2023
1 parent 2bc5c6b commit a63f511
Show file tree
Hide file tree
Showing 21 changed files with 13 additions and 258 deletions.
13 changes: 0 additions & 13 deletions android/.gitignore

This file was deleted.

71 changes: 0 additions & 71 deletions android/app/build.gradle

This file was deleted.

8 changes: 0 additions & 8 deletions android/app/src/debug/AndroidManifest.xml

This file was deleted.

34 changes: 0 additions & 34 deletions android/app/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions android/app/src/main/res/drawable-v21/launch_background.xml

This file was deleted.

12 changes: 0 additions & 12 deletions android/app/src/main/res/drawable/launch_background.xml

This file was deleted.

Binary file removed android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 0 additions & 18 deletions android/app/src/main/res/values-night/styles.xml

This file was deleted.

18 changes: 0 additions & 18 deletions android/app/src/main/res/values/styles.xml

This file was deleted.

8 changes: 0 additions & 8 deletions android/app/src/profile/AndroidManifest.xml

This file was deleted.

31 changes: 0 additions & 31 deletions android/build.gradle

This file was deleted.

3 changes: 0 additions & 3 deletions android/gradle.properties

This file was deleted.

5 changes: 0 additions & 5 deletions android/gradle/wrapper/gradle-wrapper.properties

This file was deleted.

11 changes: 0 additions & 11 deletions android/settings.gradle

This file was deleted.

17 changes: 11 additions & 6 deletions lib/ui/pages/memory_match_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:the_memory_match_game/ui/widgets/web/game_board.dart';
import 'package:the_memory_match_game/ui/widgets/mobile/game_board_mobile.dart';
Expand All @@ -15,13 +14,19 @@ class MemoryMatchPage extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
body: SafeArea(
child: kIsWeb
? GameBoard(
child: LayoutBuilder(
builder: ((context, constraints) {
if (constraints.maxWidth > 720) {
return GameBoard(
gameLevel: gameLevel,
)
: GameBoardMobile(
);
} else {
return GameBoardMobile(
gameLevel: gameLevel,
),
);
}
}),
),
),
);
}
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/widgets/memory_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MemoryCard extends StatelessWidget {
final int index;
final ValueChanged<int> onCardPressed;

void handleCardTap() {
void _handleCardTap() {
if (card.state == CardState.hidden) {
Timer(const Duration(milliseconds: 100), () {
onCardPressed(index);
Expand All @@ -26,7 +26,7 @@ class MemoryCard extends StatelessWidget {
@override
Widget build(BuildContext context) {
return InkWell(
onTap: handleCardTap,
onTap: _handleCardTap,
child: Card(
elevation: 8,
clipBehavior: Clip.antiAlias,
Expand Down

0 comments on commit a63f511

Please sign in to comment.