Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated V1.2.5 #25

Merged
merged 2 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -602,8 +604,10 @@ Future<void> 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(() {});
Expand Down
16 changes: 8 additions & 8 deletions lib/src/widget/aboutpage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class _MyWidgetState extends State<AboutPage> {
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,
Expand Down Expand Up @@ -267,7 +267,7 @@ class _MyWidgetState extends State<AboutPage> {
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",
Expand Down Expand Up @@ -373,7 +373,7 @@ class _MyWidgetState extends State<AboutPage> {
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",
Expand Down Expand Up @@ -426,7 +426,7 @@ class _MyWidgetState extends State<AboutPage> {
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",
Expand All @@ -440,17 +440,17 @@ class _MyWidgetState extends State<AboutPage> {
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,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down