From da262f030c7eb368ec4303524ebbe0460886ba94 Mon Sep 17 00:00:00 2001 From: Gabsid Date: Wed, 30 Oct 2024 17:43:00 +0530 Subject: [PATCH 1/2] Content updated. --- lib/src/widget/aboutpage.dart | 16 ++++++++-------- pubspec.yaml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/src/widget/aboutpage.dart b/lib/src/widget/aboutpage.dart index 05169c9..5382a65 100644 --- a/lib/src/widget/aboutpage.dart +++ b/lib/src/widget/aboutpage.dart @@ -223,7 +223,7 @@ class _MyWidgetState extends State { children: [ TextSpan( text: - """ You are protected from hackers and malicious actors that try to steal your information. Since all data about you remains private when you’re browsing, there’s very little window of opportunity for bad actors to pilfer your personal and private information. """, + """ You are protected from hackers and malicious actors that try to steal your information. Since all data about you remains confidential when you’re browsing, there’s very little window of opportunity for bad actors to pilfer your personal and confidential information. """, style: TextStyle( fontSize: mHeight * 0.056 / 3, fontWeight: FontWeight.w100, @@ -267,7 +267,7 @@ class _MyWidgetState extends State { appModel.darkTheme ? Colors.white : Colors.black), ), Text( - """BelNet conceals your IP. Thus, your browsing history remains private to the destination website and third parties. However, you may still be shown ads that aren’t relevant to your browsing history.""", + """BelNet conceals your IP. Thus, your browsing history remains confidential and inaccessible to the destination website and third parties. However, you may still be shown ads that aren’t relevant to your browsing history.""", style: TextStyle( fontSize: mHeight * 0.056 / 3, fontFamily: "Poppins", @@ -373,7 +373,7 @@ class _MyWidgetState extends State { color: Colors.blue)), TextSpan( text: - """. Exit node contributors will be rewarded and their node will be added to the BelNet app. To To add your exit node to the BelNet app, reach out to """, + """. Exit node contributors will be rewarded and their node will be added to the BelNet app. To add your exit node to the BelNet app, reach out to """, style: TextStyle( fontSize: mHeight * 0.056 / 3, fontFamily: "Poppins", @@ -426,7 +426,7 @@ class _MyWidgetState extends State { appModel.darkTheme ? Colors.white : Colors.black), ), Text( - """MN Apps are decentralized applications hosted on BelNet.MN Apps are privacy preserving applications and do not collect or reveal any personal information about the user.They can be accessed only by connecting to BelNet.Below is a sample MNApp that you can access by enabling BelNet:""", + """MN Apps are decentralized applications hosted on BelNet.MN Apps are confidentiality-focused applications and do not collect or reveal any personal information about the user.They can be accessed only by connecting to BelNet.Below is a sample MNApp that you can access by enabling BelNet:""", style: TextStyle( fontSize: mHeight * 0.056 / 3, fontFamily: "Poppins", @@ -440,17 +440,17 @@ class _MyWidgetState extends State { onTap: () async { //FlutterClipboard.copy("http://cw41adqqhykuxw51xmagkkb3fixyieat1josbux13jn6o973tqgy.bdx/"); if (await canLaunchUrl(Uri.parse( - "http://675wmqqbzg6nqs688e1n3bti6ter4kt5q4u5bs1c4quutpnyxsxy.bdx/"))) { + "http://explorer.bdx/"))) { await launchUrl( Uri.parse( - "http://675wmqqbzg6nqs688e1n3bti6ter4kt5q4u5bs1c4quutpnyxsxy.bdx/"), + "http://explorer.bdx/"), mode: LaunchMode.externalApplication); } else { - throw 'Could not launch http://675wmqqbzg6nqs688e1n3bti6ter4kt5q4u5bs1c4quutpnyxsxy.bdx/'; + throw 'Could not launch http://explorer.bdx/'; } }, child: Text( - """http://675wmqqbzg6nqs688e1n3bti6ter4kt5q4u5bs1c4quutpnyxsxy.bdx/""", + """http://explorer.bdx/""", style: TextStyle( decoration: TextDecoration.underline, fontSize: mHeight * 0.056 / 3, diff --git a/pubspec.yaml b/pubspec.yaml index 17a3ff6..fbae45b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.2.4+16 +version: 1.2.5+17 environment: sdk: '>=2.18.0 <4.0.0' From 37b75f46f7274e22a3ee3e3783fcb19677db0d6f Mon Sep 17 00:00:00 2001 From: Gabsid Date: Fri, 1 Nov 2024 19:07:36 +0530 Subject: [PATCH 2/2] Shared preference variable updated. --- lib/main.dart | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 0f45695..287db35 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -552,11 +552,13 @@ int count = 0; getRandomExitNodes() async { SharedPreferences preference = await SharedPreferences.getInstance(); - hintValue = preference.getString('hintValue'); + setState(() { + hintValue = preference.getString('hintValue'); hintCountryIcon = preference.getString('hintCountryicon'); - isAddExitStatus = preference.getBool('oneTimeAddExit') ?? false; - print("value of isAddExitStatus is $isAddExitStatus"); - setState(() {}); + isAddExitStatus = preference.getBool('onFreshInitAddExit') ?? false; + // isAddExitStatus = preference.getBool('oneTimeAddExit') ?? false; + print("value of isAddExitStatus onFreshInitAddExit is $isAddExitStatus"); + }); } @override @@ -602,8 +604,10 @@ Future toggleBelnet([String? exitvalue, String? dns, bool isCustomExit = f appModel.singleUpload = ""; } - await preferences.setBool('oneTimeAddExit', true); - isAddExitStatus = preferences.getBool('oneTimeAddExit'); + await preferences.setBool('onFreshInitAddExit', true); + //await preferences.setBool('oneTimeAddExit', true); + isAddExitStatus = preferences.getBool('onFreshInitAddExit'); + //isAddExitStatus = preferences.getBool('oneTimeAddExit'); print("isAddExitStatus is having the value $isAddExitStatus"); setState(() {});