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
4dcc87e2
Commit
4dcc87e2
authored
Feb 13, 2023
by
NguyenTienManh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
7b73b6a0
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
531 additions
and
431 deletions
+531
-431
lib/app/module/comment/widgets/comment_widget.dart
lib/app/module/comment/widgets/comment_widget.dart
+140
-66
lib/app/module/course/widgets/course_widget.dart
lib/app/module/course/widgets/course_widget.dart
+97
-97
lib/app/module/coursedetail/request/course_detail_request.dart
...pp/module/coursedetail/request/course_detail_request.dart
+1
-14
lib/app/module/login/widget/login_widget.dart
lib/app/module/login/widget/login_widget.dart
+70
-54
lib/app/module/new/widgets/new_widget.dart
lib/app/module/new/widgets/new_widget.dart
+112
-97
lib/app/module/school/widgets/school_widget.dart
lib/app/module/school/widgets/school_widget.dart
+99
-99
lib/app/ui/navigationbottom/home_page.dart
lib/app/ui/navigationbottom/home_page.dart
+4
-4
pubspec.lock
pubspec.lock
+7
-0
pubspec.yaml
pubspec.yaml
+1
-0
No files found.
lib/app/module/comment/widgets/comment_widget.dart
View file @
4dcc87e2
This diff is collapsed.
Click to expand it.
lib/app/module/course/widgets/course_widget.dart
View file @
4dcc87e2
This diff is collapsed.
Click to expand it.
lib/app/module/coursedetail/request/course_detail_request.dart
View file @
4dcc87e2
...
...
@@ -14,17 +14,4 @@ class RemoteCourseDetail{
}
return
null
;
}
}
// class RemoteCourseDetail{
// Future<CourseDetailModel?> getCourseDetailModel() async{
// var dio = Dio();
// String url = ("https://imes-api.myitsol.com/api/v1/public/course/ef6c4a7b-54f7-46b7-9ffd-99b057baa757");
// var response = await dio.get(url);
// if(response.statusCode == 200){
// var json = response.data;
// return CourseDetailModel.fromJson(json);
// }
// return null;
// }
// }
\ No newline at end of file
}
\ No newline at end of file
lib/app/module/login/widget/login_widget.dart
View file @
4dcc87e2
...
...
@@ -22,67 +22,83 @@ class LoginPage extends StatelessWidget {
},
builder:
(
context
,
state
)
{
return
Column
(
children:
[
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
60
,
right:
60
),
child:
TextFormField
(
decoration:
const
InputDecoration
(
labelText:
'Product Name'
,
Container
(
color:
AppColors
.
background
,
child:
Column
(
children:
[
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
0
,
20
,
0
,
0
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
const
Text
(
'Dang Ky & Tu Van'
,
style:
TextStyle
(
fontWeight:
FontWeight
.
bold
,
fontSize:
16
),),
],
),
controller:
_userController
,
),
),
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
60
,
right:
60
),
child:
TextFormField
(
decoration:
const
InputDecoration
(
labelText:
'PassWord'
,
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
60
,
right:
60
),
child:
TextFormField
(
decoration:
const
InputDecoration
(
labelText:
'Product Name'
,
),
controller:
_userController
,
),
controller:
_passController
,
),
),
OutlinedButton
(
style:
OutlinedButton
.
styleFrom
(
minimumSize:
Size
(
400
,
50
),
backgroundColor:
AppColors
.
primary
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20.0
)
,
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
60
,
right:
60
),
child:
TextFormField
(
decoration:
const
InputDecoration
(
labelText:
'PassWord'
,
),
controller:
_passController
,
),
onPressed:
()
async
{
BlocProvider
.
of
<
LoginBloc
>(
context
).
add
(
RequestLogin
(
context:
context
,
username:
_userController
.
text
,
password:
_passController
.
text
));
},
child:
Text
(
"Submit Form"
.
toUpperCase
(),
style:
const
TextStyle
(
color:
AppColors
.
white
,
fontWeight:
FontWeight
.
bold
),)
),
BlocBuilder
<
LoginBloc
,
LoginState
>(
builder:
(
context
,
state
)
{
if
(
state
is
LoginLoading
)
{
),
Padding
(
padding:
const
EdgeInsets
.
all
(
20.0
),
child:
OutlinedButton
(
style:
OutlinedButton
.
styleFrom
(
minimumSize:
const
Size
.
fromHeight
(
50
),
backgroundColor:
AppColors
.
primary
,
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
20.0
),
),
),
onPressed:
()
async
{
BlocProvider
.
of
<
LoginBloc
>(
context
).
add
(
RequestLogin
(
context:
context
,
username:
_userController
.
text
,
password:
_passController
.
text
));
},
child:
Text
(
"Dang Nhap"
.
toUpperCase
(),
style:
const
TextStyle
(
color:
AppColors
.
white
,
fontWeight:
FontWeight
.
bold
),)
),
),
BlocBuilder
<
LoginBloc
,
LoginState
>(
builder:
(
context
,
state
)
{
if
(
state
is
LoginLoading
)
{
return
const
CircularProgressIndicator
();
}
if
(
state
is
LoginFailed
)
{
return
const
Text
(
'login false!'
);
}
if
(
state
is
LoginInitial
)
{
return
Text
(
'LoginInitial'
);
}
if
(
state
is
LoginSuccess
)
{
return
Text
(
'Dang Nhap Thanh Cong'
);
}
return
const
CircularProgressIndicator
();
}
if
(
state
is
LoginFailed
)
{
return
const
Text
(
'login false!'
);
}
if
(
state
is
LoginInitial
)
{
return
Text
(
'LoginInitial'
);
}
if
(
state
is
LoginSuccess
)
{
return
Text
(
'Dang Nhap Thanh Cong'
);
}
return
const
CircularProgressIndicator
();
}),
],
}),
],
),
);
},
);
...
...
lib/app/module/new/widgets/new_widget.dart
View file @
4dcc87e2
This diff is collapsed.
Click to expand it.
lib/app/module/school/widgets/school_widget.dart
View file @
4dcc87e2
This diff is collapsed.
Click to expand it.
lib/app/ui/navigationbottom/home_page.dart
View file @
4dcc87e2
...
...
@@ -124,14 +124,14 @@ class _HomePageState extends State<HomePage> {
],
),
height:
40
,
width:
200
,
child:
Padding
(
padding:
const
EdgeInsets
.
fromLTRB
(
5
,
10
,
0
,
10
),
width:
checkLandscape
(
context
)?
getWidth
(
context
)*
0.7
:
getWidth
(
context
)*
0.5
,
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:
40
,
width:
4
0
,),
Image
.
asset
(
Images
.
notify
,
height:
30
,
width:
3
0
,),
],),
);
}
...
...
pubspec.lock
View file @
4dcc87e2
...
...
@@ -534,6 +534,13 @@ packages:
description: flutter
source: sdk
version: "0.0.99"
smooth_page_indicator:
dependency: "direct main"
description:
name: smooth_page_indicator
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
source_gen:
dependency: transitive
description:
...
...
pubspec.yaml
View file @
4dcc87e2
...
...
@@ -44,6 +44,7 @@ dependencies:
json_annotation
:
^4.7.0
flutter_swiper_view
:
^1.1.8
youtube_player_flutter
:
^8.1.2
smooth_page_indicator
:
^1.0.1
dev_dependencies
:
...
...
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