Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
vmeeting
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Inomjon
vmeeting
Commits
3b411550
Commit
3b411550
authored
Nov 03, 2023
by
Inomjon
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/main'
parents
2a0380f8
48e2f3c4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
48 deletions
+72
-48
drower_menue.dart
lib/views/drower_view/drower_menue.dart
+47
-23
home_page.dart
lib/views/home_view/home_page.dart
+1
-1
signin_page.dart
lib/views/signin_view/signin_page.dart
+8
-8
signup_page.dart
lib/views/signup_view/signup_page.dart
+16
-16
No files found.
lib/views/drower_view/drower_menue.dart
View file @
3b411550
import
'package:connectycube_sdk/connectycube_chat.dart'
;
import
'package:flutter/material.dart'
;
import
'package:vmeeting/src/extension/context_extensions.dart'
;
import
'../../service/routes/routes_name.dart'
;
import
'../../src/constants/colors_const.dart'
;
import
'../../src/controllers/enter_number_cont.dart'
;
import
'../../src/managers/call_manager.dart'
;
import
'../../src/managers/push_notifications_manager.dart'
;
import
'../../src/utils/app_utils.dart'
;
import
'../../src/utils/pref_util.dart'
;
import
'../../src/widgets/big_text_widget.dart'
;
import
'../../src/widgets/image_avatar.dart'
;
import
'../../src/widgets/small_text.dart'
;
...
...
@@ -39,40 +44,52 @@ class _DrawerMenueState extends State<DrawerMenue> {
Widget
buildImageAvatar
(
BuildContext
context
)
{
return
Container
(
color:
ColorConst
.
app
Background
Color
,
color:
ColorConst
.
app
Green
Color
,
width:
double
.
infinity
,
child:
Column
(
children:
[
SizedBox
(
height:
context
.
h
*
0.06
),
SizedBox
(
width:
context
.
w
*
0.25
,
child:
AvatarImage
(
imagePath:
"assets/AloVoice.png"
,
radius:
context
.
h
*
0.055
,
),
),
buildImage
(
context
,
AppUtils
.
userModel
.
avatar
??
""
),
SizedBox
(
height:
context
.
h
*
0.02
),
SizedBox
(
height:
context
.
h
*
0.002
),
BigText
(
text:
"cld.alovoice.uz"
,
color:
ColorConst
.
appWhiteColor
,),
BigText
(
text:
AppUtils
.
userModel
.
fullName
??
""
,),
SizedBox
(
height:
context
.
h
*
0.008
),
BigText
(
text:
AppUtils
.
userModel
.
email
??
""
,
size:
context
.
h
*
0.017
,),
SizedBox
(
height:
context
.
h
*
0.02
),
],
),
);
}
Widget
buildImage
(
BuildContext
context
,
String
?
imagaAvatar
)
{
return
Center
(
child:
AvatarImage
(
radius:
context
.
h
*
0.08
,
imagePath:
imagaAvatar
,
));
}
Widget
buildMenueList
(
BuildContext
context
)
{
return
Flexible
(
child:
Column
(
children:
[
ListTile
(
leading:
Icon
(
Icons
.
settings
,
color:
ColorConst
.
appB
ackground
Color
),
title:
BigText
(
text:
"
"
,),
leading:
Icon
(
Icons
.
settings
,
color:
ColorConst
.
appB
leck
Color
),
title:
const
BigText
(
text:
"Settings
"
,),
trailing:
Icon
(
Icons
.
navigate_next
,
color:
ColorConst
.
appB
ackground
Color
,
color:
ColorConst
.
appB
leck
Color
,
size:
30
,
),
onTap:
()
async
{
},
),
const
Spacer
(),
ListTile
(
leading:
Icon
(
Icons
.
login
,
color:
ColorConst
.
appRedColor
),
title:
SmallText
(
text:
"Logout"
,
color:
ColorConst
.
appRedColor
,),
onTap:
()
{
logoutApp
(
context
);
},
),
],
),
);
...
...
@@ -105,7 +122,7 @@ class _DrawerMenueState extends State<DrawerMenue> {
child:
Padding
(
padding:
const
EdgeInsets
.
only
(
right:
8.0
,
top:
8
),
child:
Icon
(
Icons
.
cancel
,
color:
ColorConst
.
app
Background
Color
),
color:
ColorConst
.
app
Green
Color
),
),
),
],
...
...
@@ -113,10 +130,10 @@ class _DrawerMenueState extends State<DrawerMenue> {
const
SizedBox
(
height:
4
,
),
Padding
(
padding:
const
EdgeInsets
.
only
(
left:
20.0
,
right:
8
),
const
Padding
(
padding:
EdgeInsets
.
only
(
left:
20.0
,
right:
8
),
child:
SmallText
(
text:
"
"
,
text:
"
Are you sure you want logout current user
"
,
size:
16
,
fontWidget:
FontWeight
.
w600
,
textAlign:
TextAlign
.
center
),
...
...
@@ -136,13 +153,13 @@ class _DrawerMenueState extends State<DrawerMenue> {
left:
14
,
right:
14
,
top:
8
,
bottom:
8
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
color:
ColorConst
.
app
Background
Color
),
color:
ColorConst
.
app
Green
Color
),
child:
SmallText
(
text:
""
,
text:
"
Cancel
"
,
size:
16
,
fontWidget:
FontWeight
.
w600
,
textAlign:
TextAlign
.
center
,
color:
ColorConst
.
app
White
Color
,
color:
ColorConst
.
app
Bleck
Color
,
),
),
),
...
...
@@ -156,9 +173,9 @@ class _DrawerMenueState extends State<DrawerMenue> {
left:
14
,
right:
14
,
top:
8
,
bottom:
8
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
color:
ColorConst
.
app
White
Color
),
color:
ColorConst
.
app
Red
Color
),
child:
SmallText
(
text:
""
,
text:
"
OK
"
,
size:
16
,
fontWidget:
FontWeight
.
w600
,
textAlign:
TextAlign
.
center
,
...
...
@@ -179,7 +196,14 @@ class _DrawerMenueState extends State<DrawerMenue> {
);
});
if
(
result
??
false
)
{
Navigator
.
of
(
context
).
pushNamedAndRemoveUntil
(
MainRoutes
.
sign_in_page
,(
Route
<
dynamic
>
route
)
=>
false
);
CallManager
.
instance
.
destroy
();
CubeChatConnection
.
instance
.
destroy
();
await
PushNotificationsManager
.
instance
.
unsubscribe
();
await
SharedPrefs
.
deleteUserData
();
await
signOut
();
// ignore: use_build_context_synchronously
Navigator
.
pushReplacementNamed
(
context
,
MainRoutes
.
sign_in_page
);
}
}
...
...
lib/views/home_view/home_page.dart
View file @
3b411550
...
...
@@ -155,7 +155,7 @@ class _HomePageState extends State<HomePage> {
children:
[
SmallText
(
text:
appUsersModel
.
user
?.
fullName
??
""
,
fontWidget:
FontWeight
.
bold
,),
SizedBox
(
height:
context
.
h
*
0.005
),
SmallText
(
text:
appUsersModel
.
user
?.
email
??
""
,
size:
context
.
h
*
0.0
2
),
SmallText
(
text:
appUsersModel
.
user
?.
email
??
""
,
size:
context
.
h
*
0.0
15
),
SizedBox
(
height:
context
.
h
*
0.005
),
SmallText
(
text:
appUsersModel
.
user
?.
phone
??
""
),
],
...
...
lib/views/signin_view/signin_page.dart
View file @
3b411550
...
...
@@ -75,14 +75,14 @@ class _UserSignInPageState extends State<UserSignInPage> {
Row
(
mainAxisAlignment:
MainAxisAlignment
.
end
,
children:
[
Switch
.
adaptive
(
value:
isDarkMode
,
activeColor:
ColorConst
.
appGreenColor
,
onChanged:
(
value
)
{
isDarkMode
=
value
;
widget
.
controller
.
inputTheme
.
add
(
value
);
},
),
//
Switch.adaptive(
//
value: isDarkMode,
//
activeColor: ColorConst.appGreenColor,
//
onChanged: (value) {
//
isDarkMode = value;
//
widget.controller.inputTheme.add(value);
//
},
//
),
],),
SizedBox
(
height:
context
.
h
*
0.12
),
BigText
(
...
...
lib/views/signup_view/signup_page.dart
View file @
3b411550
...
...
@@ -25,13 +25,13 @@ class _UserSignUpPageState extends State<UserSignUpPage> {
late
UserSignUpBloc
userSignUpBloc
;
late
bool
isDarkMode
=
false
;
final
_loginControlle
=
TextEditingController
(
text:
"
Flutter2000
"
);
final
_loginControlle
=
TextEditingController
(
text:
""
);
final
_loginFocusNode
=
FocusNode
();
final
_passwordControlle
=
TextEditingController
(
text:
"
Flutter2000
"
);
final
_passwordControlle
=
TextEditingController
(
text:
""
);
final
_passwordFocusNode
=
FocusNode
();
final
_emailControlle
=
TextEditingController
(
text:
"
muxtorovinomjon0227@gmail.com
"
);
final
_emailControlle
=
TextEditingController
(
text:
""
);
final
_emailFocusNode
=
FocusNode
();
final
_fullNameControlle
=
TextEditingController
(
text:
"
Muxtorov Inomjon
"
);
final
_fullNameControlle
=
TextEditingController
(
text:
""
);
final
_fullNameFocusNode
=
FocusNode
();
...
...
@@ -79,18 +79,18 @@ class _UserSignUpPageState extends State<UserSignUpPage> {
child:
Column
(
children:
[
SizedBox
(
height:
context
.
h
*
0.06
),
Row
(
mainAxisAlignment:
MainAxisAlignment
.
end
,
children:
[
Switch
.
adaptive
(
value:
isDarkMode
,
activeColor:
ColorConst
.
appGreenColor
,
onChanged:
(
value
)
{
isDarkMode
=
value
;
widget
.
controller
.
inputTheme
.
add
(
value
);
},
),
],),
//
Row(
//
mainAxisAlignment: MainAxisAlignment.end,
//
children: [
//
Switch.adaptive(
//
value: isDarkMode,
//
activeColor: ColorConst.appGreenColor,
//
onChanged: (value) {
//
isDarkMode = value;
//
widget.controller.inputTheme.add(value);
//
},
//
),
//
],),
SizedBox
(
height:
context
.
h
*
0.1
),
BigText
(
text:
"Sign Up"
,
...
...
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