Skip to content

Commit

Permalink
Merge pull request #191 from SamridhiSethi13/trunk
Browse files Browse the repository at this point in the history
enhanced options screen UI fixes issue #153
  • Loading branch information
nitesh2599 authored Mar 30, 2022
2 parents 568becb + 9ffcd2d commit 87e7836
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 12 deletions.
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"configurations": [
{
"name": "Flutter",
"type": "dart",
"request": "launch",
"program": "lib/main.dart"
}
]
}
32 changes: 20 additions & 12 deletions lib/screens/options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class _OptionsState extends State<Options> {
),
SizedBox(height: 15.toHeight),
Divider(height: 1),
SizedBox(height: 5.toHeight),
SizedBox(height: 15.toHeight),
InkWell(
onTap: () async {
BackupKeyWidget(
Expand All @@ -130,7 +130,7 @@ class _OptionsState extends State<Options> {
},
child: Row(
children: <Widget>[
Icon(Icons.file_copy, size: 25),
Icon(Icons.file_copy, size: 23),
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 8.0),
Expand All @@ -146,21 +146,27 @@ class _OptionsState extends State<Options> {
SizedBox(height: 15.toHeight),
Divider(height: 1),
SizedBox(
height: 40,
height: 38,
width: SizeConfig().screenWidth,
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Icon(Icons.lock, size: 25),
Padding(
padding: EdgeInsets.fromLTRB(0.0, 13.0, 0.0, 0.0),
child: Icon(Icons.lock, size: 25),
),
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 8.0),
padding: EdgeInsets.fromLTRB(8.0, 15.0, 0.0, 0.0),
child: Text(
'Private Account',
style: TextStyles.lightText(_themeData!.primaryColor),
),
),
),
Provider.of<SetPrivateState>(context).isLoading
Padding(
padding: EdgeInsets.fromLTRB(8.0, 15.0, 0.0, 0.0),
child: Provider.of<SetPrivateState>(context).isLoading
? LoadingDialog().onlyText(
'Updating',
style: TextStyle(
Expand All @@ -170,6 +176,7 @@ class _OptionsState extends State<Options> {
decoration: TextDecoration.none),
)
: Transform.scale(
alignment: Alignment.center,
scale: 0.7,
child: CupertinoSwitch(
activeColor: WaviColors.ColorConstants.black,
Expand All @@ -181,12 +188,13 @@ class _OptionsState extends State<Options> {
},
),
),
),
],
),
),
SizedBox(height: 15.toHeight),
Divider(height: 1),
SizedBox(height: 5.toHeight),
SizedBox(height: 15.toHeight),
InkWell(
onTap: () {
SetupRoutes.push(context, Routes.TERMS_CONDITIONS_SCREEN);
Expand Down Expand Up @@ -215,7 +223,7 @@ class _OptionsState extends State<Options> {
),
SizedBox(height: 15.toHeight),
Divider(height: 1),
SizedBox(height: 15.toHeight),
SizedBox(height: 14.toHeight),
InkWell(
onTap: () {
SetupRoutes.push(context, Routes.FAQS);
Expand All @@ -242,9 +250,9 @@ class _OptionsState extends State<Options> {
],
),
),
SizedBox(height: 15.toHeight),
SizedBox(height: 14.toHeight),
Divider(height: 1),
SizedBox(height: 15.toHeight),
SizedBox(height: 14.toHeight),
InkWell(
onTap: () {
_showResetDialog();
Expand All @@ -268,9 +276,9 @@ class _OptionsState extends State<Options> {
],
),
),
SizedBox(height: 15.toHeight),
SizedBox(height: 14.toHeight),
Divider(height: 1),
SizedBox(height: 15.toHeight),
SizedBox(height: 14.toHeight),
InkWell(
onTap: () async {
var atSignList = await KeychainUtil.getAtsignList();
Expand Down

0 comments on commit 87e7836

Please sign in to comment.