Skip to content

Commit

Permalink
feat: 문단교정 페이지 생성 및 DB연동
Browse files Browse the repository at this point in the history
  • Loading branch information
bunju20 committed Feb 20, 2024
1 parent 1643e50 commit 3475ba4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
29 changes: 24 additions & 5 deletions lib/views/paragraph/create_script_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,30 @@ class CreateScriptPage extends StatelessWidget {
children: [
Expanded(
flex: 1,
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Text(
text,
style: const TextStyle(fontSize: 16),
child: SingleChildScrollView(
child: Container(
child: Padding(
padding: const EdgeInsets.all(0.0),
child: Container(
margin: const EdgeInsets.all(10.0),
padding: const EdgeInsets.all(20.0),
//가장자리 둥글게
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(15.0),

color: Colors.white,

),

child: Text(
text,
style: const TextStyle(fontSize: 16,
fontFamily: 'Pretendard',
fontWeight: FontWeight.bold
),
),
),
),
),
),
),
Expand Down
9 changes: 5 additions & 4 deletions lib/views/paragraph/learning_session_screen.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:earlips/viewModels/Paragraph/learning_session_screen_viewmodel.dart';
import 'package:earlips/views/word/widget/blue_back_appbar.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:earlips/views/paragraph/create_script_screen.dart';
Expand All @@ -23,9 +24,9 @@ class _LearningSessionScreenState extends State<LearningSessionScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('대본으로 학습하기'),
centerTitle: true,
appBar: PreferredSize(
preferredSize: const Size.fromHeight(kToolbarHeight),
child: BlueBackAppbar(title: "문단교정"),
),
body: Obx(() {
if (viewModel.isLoading.value) {
Expand Down Expand Up @@ -54,7 +55,7 @@ class _LearningSessionScreenState extends State<LearningSessionScreen> {
title: Text(
paragraph.title,
style: const TextStyle(
fontSize: 24.0,
fontSize: 20.0,
fontWeight: FontWeight.bold,
),
),
Expand Down
3 changes: 2 additions & 1 deletion lib/views/word/word_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:earlips/views/word/widget/word_youtube_widget.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:earlips/views/paragraph/create_script_screen.dart';
import 'package:earlips/views/paragraph/learning_session_screen.dart';

class WordScreen extends StatelessWidget {
final String title;
Expand Down Expand Up @@ -85,7 +86,7 @@ class WordScreen extends StatelessWidget {
wordDataList: controller.wordList,
);
} else {
return const CreateScriptPage();
return LearningSessionScreen();
}
},
),
Expand Down

0 comments on commit 3475ba4

Please sign in to comment.