Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
ntManhBut
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NguyenTienManh
ntManhBut
Commits
443fb4cb
Commit
443fb4cb
authored
Feb 14, 2023
by
NguyenTienManh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 14-2
parent
1dcc0d8a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
25 deletions
+42
-25
lib/app/module/coursedetail/widgets/course_detail.dart
lib/app/module/coursedetail/widgets/course_detail.dart
+0
-14
lib/app/module/lession/widgets/lession_widget.dart
lib/app/module/lession/widgets/lession_widget.dart
+34
-7
lib/app/ui/navigationbottom/home_page.dart
lib/app/ui/navigationbottom/home_page.dart
+8
-4
No files found.
lib/app/module/coursedetail/widgets/course_detail.dart
View file @
443fb4cb
...
...
@@ -71,10 +71,6 @@ class CourseDetailWidget extends StatelessWidget {
padding:
const
EdgeInsets
.
fromLTRB
(
10
,
10
,
0
,
0
),
child:
Column
(
children:
[
// Text(chapters[0].name.toString(),style: const TextStyle(fontSize: 15,fontWeight: FontWeight.bold),
// softWrap: false,
// maxLines: 1,
// overflow: TextOverflow.ellipsis),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
...
...
@@ -111,16 +107,6 @@ class CourseDetailWidget extends StatelessWidget {
),
),
),
// ExpansionTile(
// title: null,
//
// ),
// Text(chapters[0].listLesson![0].name!),
// Text(chapters[0].listLesson![0].createUser!),
// Text(chapters[0].listLesson![0].listPart![0].partType!),
// LessionWidget( chapters[0].listLesson![0].lessonId!=null?chapters[0].listLesson![0].lessonId!
// :'fb228efa-7b32-419e-98b4-a6d5135f4361' ),
],);
}
}
...
...
lib/app/module/lession/widgets/lession_widget.dart
View file @
443fb4cb
...
...
@@ -47,21 +47,48 @@ class _LessionWidgetState extends State<LessionWidget> {
return
InkWell
(
onTap:
(){
PlayVideoPage
(
link:
state
.
lessonModel
.
data
![
index
].
playlist
![
0
].
link
!);
state
.
lessonModel
.
data
![
index
].
partType
==
'YOUTUBE'
?
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
PlayVideoPage
(
link:
state
.
lessonModel
.
data
![
index
].
playlist
![
0
].
link
!)),
):
const
Text
(
'---------'
);
// PlayVideoPage(link: state.lessonModel.data![index].playlist![0].link!):const Text('---');
// nPt8bK2gbaU
// Navigator.push(
// // //context,
// // //MaterialPageRoute(builder: (context) => PlayVideoPage(link: state.lessonModel.data![index].playlist![0].link!)),
// // //);
},
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
2
0
,
3
,
0
,
3
),
padding:
const
EdgeInsets
.
fromLTRB
(
3
0
,
3
,
0
,
3
),
child:
Image
.
asset
(
Images
.
o
,
height:
10
,
width:
10
,)),
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
0
,
0
,
0
,
0
),
child:
Text
(
state
.
lessonModel
.
data
![
index
].
title
!=
null
?
state
.
lessonModel
.
data
![
index
].
title
!:
'Null'
),),
child:
Text
(
state
.
lessonModel
.
data
![
index
].
title
!=
null
?
state
.
lessonModel
.
data
![
index
].
title
!:
'Null'
),
),
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
20
,
3
,
20
,
3
),
child:
state
.
lessonModel
.
data
![
index
].
partType
==
'YOUTUBE'
?
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
20
,
3
,
20
,
3
),
child:
Image
.
asset
(
Images
.
see
,
height:
20
,
width:
20
,),
):
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
20
,
3
,
20
,
3
),
child:
Image
.
asset
(
Images
.
uneye
,
height:
20
,
width:
20
,),
),
),
// Padding(
// padding: const EdgeInsets.fromLTRB(20, 3, 20, 3),
// child: Image.asset(Images.see,height: 20,width: 20,),
// ),
// Padding(
// padding: const EdgeInsets.fromLTRB(20, 3, 20, 3),
// child: Image.asset(Images.uneye,height: 20,width: 20,),
// ),
],),
);
...
...
lib/app/ui/navigationbottom/home_page.dart
View file @
443fb4cb
...
...
@@ -96,8 +96,12 @@ class _HomePageState extends State<HomePage> {
),
],),
child:
Row
(
children:
[
Image
.
asset
(
Images
.
ongbut_happy
,
height:
60
,
width:
60
,),
const
Text
(
'ngBụt'
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
,
fontSize:
25
,
color:
AppColors
.
white
),),
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
10
,
0
,
0
,
0
),
child:
Image
.
asset
(
Images
.
logoWhite
,
height:
checkLandscape
(
context
)?
getHeight
(
context
)*
0.25
:
getHeight
(
context
)*
0.07
,
width:
90
,),
),
InkWell
(
onTap:
(){
Navigator
.
push
(
...
...
@@ -123,14 +127,14 @@ class _HomePageState extends State<HomePage> {
],
),
height:
40
,
width:
checkLandscape
(
context
)?
getWidth
(
context
)*
0.7
:
getWidth
(
context
)*
0.
5
,
width:
checkLandscape
(
context
)?
getWidth
(
context
)*
0.7
:
getWidth
(
context
)*
0.
6
,
child:
const
Padding
(
padding:
EdgeInsets
.
fromLTRB
(
5
,
10
,
0
,
10
),
child:
Text
(
'Tim Kiem'
,
style:
TextStyle
(
fontSize:
15
,
color:
Colors
.
white
),),
),
),
),
Image
.
asset
(
Images
.
notify
,
height:
30
,
width:
30
,),
Image
.
asset
(
Images
.
notify
,
height:
25
,
width:
25
,),
],),
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment