Skip to content

Commit

Permalink
[Fix] Solving screen design solved
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtyoon committed Feb 21, 2024
1 parent 01fb147 commit a109e11
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 42 deletions.
2 changes: 1 addition & 1 deletion IFU-Hybrid/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastUpgradeCheck = 1430;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
331C8080294A63A400263BE5 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_dotenv/flutter_dotenv.dart';
import 'package:webview_flutter/webview_flutter.dart';

class ConceptWebViewWidget extends StatefulWidget {
Expand All @@ -10,13 +11,14 @@ class ConceptWebViewWidget extends StatefulWidget {

class _WebViewState extends State<ConceptWebViewWidget> {
late final WebViewController _controller;
final String webUrl = dotenv.env['CONCEPT_WEB_URL']!;

@override
void initState() {
super.initState();
_controller = WebViewController()
..loadRequest(
Uri.parse('https://65d0b72c8f9229857aabbd6b--chic-pudding-3bbe86.netlify.app/'),
Uri.parse(webUrl),
);
}

Expand Down
23 changes: 4 additions & 19 deletions IFU-Hybrid/lib/views/solving/solution_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,8 @@ class SolutionScreen extends BaseScreen<SolvingViewModel> {
} else if (controller.currentQuestion != null) {
return Column(
children: [
const Expanded(
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(
'A.',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
SizedBox(height: 30),
],
),
),
SizedBox(
height: MediaQuery.of(context).size.height * 0.3,
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 20.0),
Expand All @@ -45,7 +30,7 @@ class SolutionScreen extends BaseScreen<SolvingViewModel> {
child: Align(
alignment: Alignment.bottomCenter,
child: Container(
padding: const EdgeInsets.fromLTRB(20, 20, 20, 140),
padding: const EdgeInsets.fromLTRB(20, 20, 20, 175),
child: TextButton(
style: TextButton.styleFrom(
padding: const EdgeInsets.symmetric(
Expand All @@ -65,7 +50,7 @@ class SolutionScreen extends BaseScreen<SolvingViewModel> {
'Complete',
style: TextStyle(
color: Color(0xFF2B90D9),
fontSize: 24,
fontSize: 16,
fontWeight: FontWeight.bold),
),
),
Expand Down
2 changes: 1 addition & 1 deletion IFU-Hybrid/lib/views/solving/solving_entry_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class SolvingEntryScreen extends BaseScreen<SolvingViewModel> {
'Solving',
style: TextStyle(
color: Color(0xFF2B90D9),
fontSize: 24,
fontSize: 16,
fontWeight: FontWeight.bold),
),
),
Expand Down
23 changes: 4 additions & 19 deletions IFU-Hybrid/lib/views/solving/solving_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,8 @@ class SolvingScreen extends BaseScreen<SolvingViewModel> {
} else if (controller.currentQuestion != null) {
return Column(
children: [
const Expanded(
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(
'Q.',
style: TextStyle(
fontSize: 24,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
SizedBox(height: 30),
],
),
),
SizedBox(
height: MediaQuery.of(context).size.height * 0.3,
),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 20.0),
Expand All @@ -46,7 +31,7 @@ class SolvingScreen extends BaseScreen<SolvingViewModel> {
child: Align(
alignment: Alignment.bottomCenter,
child: Container(
margin: const EdgeInsets.fromLTRB(20, 20, 20, 140),
margin: const EdgeInsets.fromLTRB(20, 20, 20, 175),
child: TextButton(
style: TextButton.styleFrom(
padding: const EdgeInsets.symmetric(
Expand All @@ -63,7 +48,7 @@ class SolvingScreen extends BaseScreen<SolvingViewModel> {
'Solution',
style: TextStyle(
color: Color(0xFF2B90D9),
fontSize: 24,
fontSize: 16,
fontWeight: FontWeight.bold),
),
),
Expand Down

0 comments on commit a109e11

Please sign in to comment.