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
b7ce82a7
Commit
b7ce82a7
authored
Nov 28, 2023
by
Inomjon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
App ga chat funcsiyasi qo'shlishi boshlandi
parent
e197b2ff
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
133 additions
and
16 deletions
+133
-16
app_routes.dart
lib/service/routes/app_routes.dart
+4
-0
routes_name.dart
lib/service/routes/routes_name.dart
+1
-0
drower_menue.dart
lib/views/drower_view/drower_menue.dart
+1
-0
home_page.dart
lib/views/home_view/home_page.dart
+3
-3
reset_password_page.dart
lib/views/reset_password_view/reset_password_page.dart
+111
-0
pubspec.lock
pubspec.lock
+13
-13
No files found.
lib/service/routes/app_routes.dart
View file @
b7ce82a7
...
...
@@ -10,6 +10,7 @@ import '../../blocs/user_login_bloc/user_log_in_bloc.dart';
import
'../../src/controllers/enter_number_cont.dart'
;
import
'../../src/login_screen.dart'
;
import
'../../views/edit_profile_view/edit_profile_page.dart'
;
import
'../../views/reset_password_view/reset_password_page.dart'
;
import
'../../views/signin_view/signin_page.dart'
;
import
'../../views/signup_view/signup_page.dart'
;
import
'../../views/splash_view/splash_screen.dart'
;
...
...
@@ -46,6 +47,9 @@ class MainNavigator extends StatelessWidget {
case
MainRoutes
.
main_page
:
builder
=
(
BuildContext
_
)
=>
MainPage
(
controller:
controller
);
break
;
case
MainRoutes
.
reset_password_page
:
builder
=
(
BuildContext
_
)
=>
ResetPasswordPage
(
controller:
controller
);
break
;
case
MainRoutes
.
user_signup_page
:
builder
=
(
BuildContext
_
)
=>
MultiBlocProvider
(
providers:
[
...
...
lib/service/routes/routes_name.dart
View file @
b7ce82a7
...
...
@@ -7,4 +7,5 @@ class MainRoutes {
static
const
String
sign_in_page
=
"sign_in_page"
;
static
const
String
old_sign_in
=
"old_sign_in"
;
static
const
String
edit_profile_page
=
"edit_profile_page"
;
static
const
String
reset_password_page
=
"reset_password_page"
;
}
\ No newline at end of file
lib/views/drower_view/drower_menue.dart
View file @
b7ce82a7
...
...
@@ -79,6 +79,7 @@ class _DrawerMenueState extends State<DrawerMenue> {
size:
30
,
),
onTap:
()
async
{
Navigator
.
pushNamed
(
context
,
MainRoutes
.
reset_password_page
);
},
),
const
Spacer
(),
...
...
lib/views/home_view/home_page.dart
View file @
b7ce82a7
...
...
@@ -158,11 +158,11 @@ class _HomePageState extends State<HomePage> {
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
SmallText
(
text:
appUsersModel
.
user
?.
fullName
??
""
,
fontWidget:
FontWeight
.
bold
,),
SizedBox
(
height:
context
.
h
*
0.00
5
),
SizedBox
(
height:
context
.
h
*
0.00
1
),
SmallText
(
text:
appUsersModel
.
user
?.
email
??
""
,
size:
context
.
h
*
0.017
),
SizedBox
(
height:
context
.
h
*
0.00
5
),
SizedBox
(
height:
context
.
h
*
0.00
1
),
SmallText
(
text:
appUsersModel
.
user
?.
phone
??
""
),
SizedBox
(
height:
context
.
h
*
0.00
5
),
SizedBox
(
height:
context
.
h
*
0.00
1
),
SmallText
(
text:
appUsersModel
.
user
?.
id
.
toString
()
??
""
),
],
),
...
...
lib/views/reset_password_view/reset_password_page.dart
0 → 100644
View file @
b7ce82a7
import
'package:connectycube_sdk/connectycube_calls.dart'
;
import
'package:flutter/material.dart'
;
import
'package:vmeeting/src/extension/context_extensions.dart'
;
import
'package:vmeeting/src/widgets/big_text_widget.dart'
;
import
'../../src/constants/colors_const.dart'
;
import
'../../src/controllers/enter_number_cont.dart'
;
import
'../../src/utils/app_utils.dart'
;
import
'../../src/widgets/textfiled_widgets/auth_text_fild.dart'
;
class
ResetPasswordPage
extends
StatefulWidget
{
final
NumberController
controller
;
const
ResetPasswordPage
({
super
.
key
,
required
this
.
controller
});
@override
State
<
ResetPasswordPage
>
createState
()
=>
_ResetPasswordPageState
();
}
class
_ResetPasswordPageState
extends
State
<
ResetPasswordPage
>
{
final
_emailControlle
=
TextEditingController
(
text:
AppUtils
.
userModel
.
email
);
final
_emailFocusNode
=
FocusNode
();
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
const
BigText
(
text:
"Chage Password"
),
),
body:
buildUI
(),
);
}
Widget
buildUI
(){
return
Container
(
margin:
EdgeInsets
.
symmetric
(
horizontal:
context
.
w
*
0.06
),
child:
Column
(
children:
[
SizedBox
(
height:
context
.
h
*
0.2
),
AuthTextFild
(
lableName:
"Email"
,
borderRadius:
10
,
elevation:
1
,
color:
Colors
.
grey
.
withOpacity
(
0.2
),
type:
TextInputType
.
emailAddress
,
focusNode:
_emailFocusNode
,
textEditingController:
_emailControlle
,
),
SizedBox
(
height:
context
.
h
*
0.1
),
buildButtons
(),
],
),
);
}
Future
<
dynamic
>
resetPasswordUser
(
String
emile
)
async
{
return
await
resetPassword
(
emile
)
.
then
((
voidResult
)
{
print
(
"Shu yerga keldi"
);
})
.
catchError
((
error
)
{
print
(
"Shu yerga keldi"
);
});
}
Widget
buildButtons
()
{
return
StreamBuilder
(
stream:
widget
.
controller
.
outputElevatedButton
,
builder:
(
BuildContext
context
,
snapshot
){
return
Column
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
ElevatedButton
(
style:
ElevatedButton
.
styleFrom
(
foregroundColor:
Colors
.
white
,
backgroundColor:
ColorConst
.
appGreenColor
,
disabledForegroundColor:
Colors
.
grey
.
withOpacity
(
0.38
),
disabledBackgroundColor:
Colors
.
grey
.
withOpacity
(
0.12
),
),
onPressed:
()
async
{
if
(
_emailControlle
.
text
.
isNotEmpty
){
widget
.
controller
.
inputElevatedButton
.
add
(
true
);
final
resetPasswordUse
=
await
resetPasswordUser
(
_emailControlle
.
text
);
widget
.
controller
.
inputElevatedButton
.
add
(
false
);
print
(
resetPasswordUse
);
}
else
{
AppUtils
.
showSnackBar
(
context
,
"PLEASE ENTER THE SAME VALUE AGAIN"
);
}
},
child:
SizedBox
(
height:
context
.
h
*
0.06
,
child:
Center
(
child:
snapshot
.
data
??
false
?
AppUtils
.
buttonLoader
:
BigText
(
text:
"Chage"
.
toUpperCase
(),
fontWidget:
FontWeight
.
bold
,
size:
16
,
),
),
),
),
],
);
});
}
}
pubspec.lock
View file @
b7ce82a7
...
...
@@ -61,10 +61,10 @@ packages:
dependency: transitive
description:
name: collection
sha256:
f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
sha256:
ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.1
7.2
"
version: "1.1
8.0
"
connectycube_flutter_call_kit:
dependency: "direct main"
description:
...
...
@@ -476,10 +476,10 @@ packages:
dependency: transitive
description:
name: meta
sha256:
"3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256:
a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
version: "1.
9.1
"
version: "1.
10.0
"
mime:
dependency: transitive
description:
...
...
@@ -761,18 +761,18 @@ packages:
dependency: transitive
description:
name: stack_trace
sha256:
c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
sha256:
"73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.
0
"
version: "1.11.
1
"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256:
"83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
sha256:
ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.
1
"
version: "2.1.
2
"
string_scanner:
dependency: transitive
description:
...
...
@@ -801,10 +801,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: "
75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8
"
sha256: "
5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b
"
url: "https://pub.dev"
source: hosted
version: "0.6.
0
"
version: "0.6.
1
"
tuple:
dependency: transitive
description:
...
...
@@ -945,10 +945,10 @@ packages:
dependency: transitive
description:
name: web
sha256:
dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
sha256:
afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
url: "https://pub.dev"
source: hosted
version: "0.
1.4-beta
"
version: "0.
3.0
"
web_browser_detect:
dependency: "direct main"
description:
...
...
@@ -1014,5 +1014,5 @@ packages:
source: hosted
version: "0.4.4-dev.4"
sdks:
dart: ">=3.
1.3
<4.0.0"
dart: ">=3.
2.0-194.0.dev
<4.0.0"
flutter: ">=3.13.0"
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