This repository was archived by the owner on Dec 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +28
-19
lines changed Expand file tree Collapse file tree 9 files changed +28
-19
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ android {
42
42
43
43
defaultConfig {
44
44
// 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 "
46
46
// You can update the following values to match your application needs.
47
47
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
48
48
minSdkVersion flutter. minSdkVersion
Original file line number Diff line number Diff line change 1
1
<manifest xmlns : android =" http://schemas.android.com/apk/res/android" >
2
2
<application
3
- android : label =" chemistry_game "
3
+ android : label =" Riddle Roit "
4
4
android : name =" ${applicationName}"
5
5
android : icon =" @mipmap/ic_launcher" >
6
6
<activity
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class MyApp extends StatelessWidget {
65
65
routes: {
66
66
'/page1' : (context) => const Page1 (),
67
67
'/page2' : (context) => const Page2 (),
68
- '/Page2 ' : (context) => const Page2 (),
68
+ '/page3 ' : (context) => const Page3 (),
69
69
'/page4' : (context) => const MyGame (),
70
70
},
71
71
);
@@ -97,7 +97,7 @@ class MyHomePage extends StatelessWidget {
97
97
500 ), // Adjust the amount of space before the buttons
98
98
ElevatedButton (
99
99
onPressed: () {
100
- Navigator .pushNamed (context, '/page2 ' );
100
+ Navigator .pushNamed (context, '/page1 ' );
101
101
},
102
102
child: const Text ('Start' ),
103
103
),
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class Page1State extends State<Page1> with TickerProviderStateMixin {
81
81
QuizData .quizQuestions.length) {
82
82
_showModalSheet (); // Show the next question if available
83
83
} else {
84
- Navigator .pushNamed (context, '/page2 ' );
84
+ Navigator .pushNamed (context, '/page3 ' );
85
85
}
86
86
} else {
87
87
// Show an error message for wrong answer
@@ -123,21 +123,22 @@ class Page1State extends State<Page1> with TickerProviderStateMixin {
123
123
Container (
124
124
decoration: const BoxDecoration (
125
125
image: DecorationImage (
126
- image: AssetImage ('levelOne.png' ),
126
+ image: AssetImage ('images/ levelOne.png' ),
127
127
fit: BoxFit .cover,
128
128
),
129
129
),
130
130
),
131
131
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
+ ),
141
142
],
142
143
),
143
144
);
Original file line number Diff line number Diff line change
1
+ // tnis page isnt in use ffs
2
+
1
3
import 'package:flutter/material.dart' ;
2
4
import 'dart:async' ;
3
5
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ class _Page3State extends State<Page3> {
192
192
193
193
return Scaffold (
194
194
appBar: AppBar (
195
- title: const Text ('Level 3 ' ),
195
+ title: const Text ('Level 2 ' ),
196
196
),
197
197
body: Center (
198
198
child: Column (
@@ -216,8 +216,9 @@ class _Page3State extends State<Page3> {
216
216
child: SizedBox (
217
217
width: 50 ,
218
218
height: 50 ,
219
- child: Image .asset (
220
- 'player.png' ,
219
+ child: Container (
220
+ // image: AssetImage("images/player.png"),
221
+ color: Colors .yellow,
221
222
width: 100 ,
222
223
height: 100 ,
223
224
),
Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ include(${EPHEMERAL_DIR}/generated_config.cmake)
10
10
# https://github.com/flutter/flutter/issues/57146.
11
11
set (WRAPPER_ROOT "${EPHEMERAL_DIR} /cpp_client_wrapper" )
12
12
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
+
13
18
# === Flutter Library ===
14
19
set (FLUTTER_LIBRARY "${EPHEMERAL_DIR} /flutter_windows.dll" )
15
20
@@ -92,7 +97,7 @@ add_custom_command(
92
97
COMMAND ${CMAKE_COMMAND} -E env
93
98
${FLUTTER_TOOL_ENVIRONMENT}
94
99
"${FLUTTER_ROOT} /packages/flutter_tools/bin/tool_backend.bat"
95
- windows-x64 $< CONFIG>
100
+ ${FLUTTER_TARGET_PLATFORM} $< CONFIG>
96
101
VERBATIM
97
102
)
98
103
add_custom_target (flutter_assemble DEPENDS
You can’t perform that action at this time.
0 commit comments