Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
exide_crr_dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nitesh Verma
exide_crr_dev
Commits
d06e4e93
Commit
d06e4e93
authored
1 year ago
by
Rakshitha Salian
Browse files
Options
Downloads
Patches
Plain Diff
Refractor code
parent
feb9f5bf
No related branches found
No related tags found
1 merge request
!2
Verify OTP screen- FE -ECAP1-24
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/customWidget/dialogues/success_dialogue.dart
+52
-0
52 additions, 0 deletions
lib/customWidget/dialogues/success_dialogue.dart
lib/views/verifyOTP/widgets/verification_success_dialogue.dart
+0
-89
0 additions, 89 deletions
...iews/verifyOTP/widgets/verification_success_dialogue.dart
with
52 additions
and
89 deletions
lib/customWidget/dialogues/success_dialogue.dart
0 → 100644
+
52
−
0
View file @
d06e4e93
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:get/get.dart'
;
import
'../app_text.dart'
;
import
'../../res/app_color_text_size.dart'
;
Future
<
dynamic
>
verificationSuccess
(
{
required
BuildContext
context
,
required
String
assetName
,
required
String
title
,
required
String
subtitle
})
{
return
Get
.
dialog
(
barrierDismissible:
false
,
barrierColor:
AppColor
.
black
.
withOpacity
(
0.5
),
Center
(
child:
SingleChildScrollView
(
child:
AlertDialog
(
shape:
const
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
12.0
))),
backgroundColor:
AppColor
.
white
,
contentPadding:
EdgeInsets
.
zero
,
content:
Padding
(
padding:
EdgeInsets
.
all
(
24.0
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
Image
.
asset
(
assetName
,
width:
64
,
height:
64
,
),
AppText
(
text:
title
,
fontSize:
TextSize
.
textSubHeadingSize
,
fontWeight:
FontWeight
.
w500
,
textColor:
AppColor
.
slateGray
,
)
.
paddingOnly
(
top:
16.0
),
AppText
(
text:
subtitle
,
fontSize:
TextSize
.
textSmallSize
,
fontWeight:
FontWeight
.
w400
,
textColor:
AppColor
.
lightGrey
,
maxLine:
2
,
textAlign:
TextAlign
.
center
,
)
.
paddingOnly
(
top:
8.0
),
],
),
),
),
),
));
}
This diff is collapsed.
Click to expand it.
lib/views/verifyOTP/widgets/verification_success_dialogue.dart
deleted
100644 → 0
+
0
−
89
View file @
feb9f5bf
import
'package:flutter/cupertino.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:get/get.dart'
;
import
'package:get/get_core/src/get_main.dart'
;
import
'../../../customWidget/app_text.dart'
;
import
'../../../res/app_color_text_size.dart'
;
verificationSuccess
(
{
required
BuildContext
context
,
required
String
assetName
,
required
String
title
,
required
String
subtitle
})
{
return
Get
.
dialog
(
barrierDismissible:
false
,
Center
(
child:
SingleChildScrollView
(
child:
AlertDialog
(
shape:
const
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
all
(
Radius
.
circular
(
12.0
))),
backgroundColor:
AppColor
.
white
,
contentPadding:
EdgeInsets
.
zero
,
content:
Padding
(
padding:
EdgeInsets
.
all
(
24.0
.
w
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
Image
.
asset
(
assetName
,
width:
64
,
height:
64
,
),
Padding
(
padding:
EdgeInsets
.
only
(
top:
16.0
),
child:
AppText
(
text:
title
,
fontSize:
18
,
fontWeight:
FontWeight
.
w500
,
textColor:
AppColor
.
slateGray
,
),
),
Padding
(
padding:
EdgeInsets
.
only
(
top:
8.0
),
child:
AppText
(
text:
subtitle
,
fontSize:
14
,
fontWeight:
FontWeight
.
w400
,
textColor:
AppColor
.
lightGrey
,
maxLine:
2
,
textAlign:
TextAlign
.
center
,
),
),
],
),
),
),
),
));
// showDialog(barrierDismissible: false,
// context: context,
// builder: (_) => Dialog(
// child: Column(
// crossAxisAlignment: CrossAxisAlignment.center,
// children: [
// Image.asset(
// assetName,
// width: 64,
// height: 64,
// ),
// Padding(
// padding: EdgeInsets.only(left: 16.0.h),
// child: AppText(
// text:title,
// fontSize: 18,
// fontWeight: FontWeight.w500,
// textColor: AppColor.slateGray,
// ),
// ),
// Padding(
// padding: EdgeInsets.only(left: 8.0.h),
// child: AppText(
// text: subtitle,
// fontSize: 14,
// fontWeight: FontWeight.w400,
// textColor: AppColor.lightGrey,
// ),
// ),
// ],
// ),
// ));
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment