Skip to content
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 90ef0cf

Browse files
committed
bugs fixed
1 parent 6b53edf commit 90ef0cf

File tree

9 files changed

+28
-19
lines changed

9 files changed

+28
-19
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ android {
4242

4343
defaultConfig {
4444
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
45-
applicationId "com.example.chemistry_game"
45+
applicationId "com.varunbanka.riddleroit"
4646
// You can update the following values to match your application needs.
4747
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
4848
minSdkVersion flutter.minSdkVersion

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<application
3-
android:label="chemistry_game"
3+
android:label="Riddle Roit"
44
android:name="${applicationName}"
55
android:icon="@mipmap/ic_launcher">
66
<activity
File renamed without changes.
File renamed without changes.

lib/main.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class MyApp extends StatelessWidget {
6565
routes: {
6666
'/page1': (context) => const Page1(),
6767
'/page2': (context) => const Page2(),
68-
'/Page2': (context) => const Page2(),
68+
'/page3': (context) => const Page3(),
6969
'/page4': (context) => const MyGame(),
7070
},
7171
);
@@ -97,7 +97,7 @@ class MyHomePage extends StatelessWidget {
9797
500), // Adjust the amount of space before the buttons
9898
ElevatedButton(
9999
onPressed: () {
100-
Navigator.pushNamed(context, '/page2');
100+
Navigator.pushNamed(context, '/page1');
101101
},
102102
child: const Text('Start'),
103103
),

lib/page1.dart

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Page1State extends State<Page1> with TickerProviderStateMixin {
8181
QuizData.quizQuestions.length) {
8282
_showModalSheet(); // Show the next question if available
8383
} else {
84-
Navigator.pushNamed(context, '/page2');
84+
Navigator.pushNamed(context, '/page3');
8585
}
8686
} else {
8787
// Show an error message for wrong answer
@@ -123,21 +123,22 @@ class Page1State extends State<Page1> with TickerProviderStateMixin {
123123
Container(
124124
decoration: const BoxDecoration(
125125
image: DecorationImage(
126-
image: AssetImage('levelOne.png'),
126+
image: AssetImage('images/levelOne.png'),
127127
fit: BoxFit.cover,
128128
),
129129
),
130130
),
131131
AnimatedPositioned(
132-
duration: const Duration(seconds: 2),
133-
curve: Curves.ease,
134-
left: (MediaQuery.of(context).size.width - 100) / 2,
135-
bottom: _blockPosition,
136-
child: Image.asset(
137-
'player.png',
138-
width: 100,
139-
height: 100,
140-
)),
132+
duration: const Duration(seconds: 2),
133+
curve: Curves.ease,
134+
left: (MediaQuery.of(context).size.width - 100) / 2,
135+
bottom: _blockPosition,
136+
child: Container(
137+
color: Colors.yellow,
138+
width: 100,
139+
height: 100,
140+
),
141+
),
141142
],
142143
),
143144
);

lib/page2.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// tnis page isnt in use ffs
2+
13
import 'package:flutter/material.dart';
24
import 'dart:async';
35

lib/page3.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class _Page3State extends State<Page3> {
192192

193193
return Scaffold(
194194
appBar: AppBar(
195-
title: const Text('Level 3'),
195+
title: const Text('Level 2'),
196196
),
197197
body: Center(
198198
child: Column(
@@ -216,8 +216,9 @@ class _Page3State extends State<Page3> {
216216
child: SizedBox(
217217
width: 50,
218218
height: 50,
219-
child: Image.asset(
220-
'player.png',
219+
child: Container(
220+
// image: AssetImage("images/player.png"),
221+
color: Colors.yellow,
221222
width: 100,
222223
height: 100,
223224
),

windows/flutter/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake)
1010
# https://github.com/flutter/flutter/issues/57146.
1111
set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper")
1212

13+
# Set fallback configurations for older versions of the flutter tool.
14+
if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
15+
set(FLUTTER_TARGET_PLATFORM "windows-x64")
16+
endif()
17+
1318
# === Flutter Library ===
1419
set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll")
1520

@@ -92,7 +97,7 @@ add_custom_command(
9297
COMMAND ${CMAKE_COMMAND} -E env
9398
${FLUTTER_TOOL_ENVIRONMENT}
9499
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
95-
windows-x64 $<CONFIG>
100+
${FLUTTER_TARGET_PLATFORM} $<CONFIG>
96101
VERBATIM
97102
)
98103
add_custom_target(flutter_assemble DEPENDS

0 commit comments

Comments
 (0)