From 7a5ecf6f36ee890b730c50401459ad3d5b9296dc Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 1 Apr 2025 03:11:52 -0700 Subject: [PATCH] Push new product --- lib/Constants.dart | 2 +- lib/pages/Main.dart | 4 +++- lib/pages/OpenSim.dart | 2 +- lib/pages/shitbot.dart | 30 ++++++++++++++++++++++++++++++ pubspec.yaml | 8 ++++---- 5 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 lib/pages/shitbot.dart diff --git a/lib/Constants.dart b/lib/Constants.dart index 1128e7d..54578a4 100644 --- a/lib/Constants.dart +++ b/lib/Constants.dart @@ -8,7 +8,7 @@ class Constants { static const DRAWER_COLOR = Color.fromARGB(148, 0, 97, 97); static const PORTFOLIO_CARD_COLOR = Color.fromARGB(255, 0, 71, 97); - static const VERSION = "Version 1.0.013025+2022"; + static const VERSION = "Version 1.0.040125+0311"; static const COPYRIGHT = "Copyright 2024-2025 - Piccari Creations. All Rights Reserved"; static const CLIENTPSK = diff --git a/lib/pages/Main.dart b/lib/pages/Main.dart index cd28c8c..3d8612f 100644 --- a/lib/pages/Main.dart +++ b/lib/pages/Main.dart @@ -9,6 +9,7 @@ import 'package:zontreck/pages/Portfolio.dart'; import 'package:zontreck/pages/RegisterAccount.dart'; import 'package:zontreck/pages/libac.dart'; import 'package:zontreck/pages/nbt/NBTEditor.dart'; +import 'package:zontreck/pages/shitbot.dart'; class MainPage extends StatelessWidget { const MainPage({super.key}); @@ -24,7 +25,8 @@ class MainPage extends StatelessWidget { "/portfolio": (context) => const PortfolioPage(), "/portfolio/coun": (context) => const CardsOfUtterNonsense(), "/portfolio/libac": (context) => const LibACAbout(), - "/portfolio/nbteditor": (context) => AboutNBTEditor() + "/portfolio/nbteditor": (context) => AboutNBTEditor(), + "/shitbot": (context) => ShitBotProductPage() }, theme: ThemeData.dark(), ); diff --git a/lib/pages/OpenSim.dart b/lib/pages/OpenSim.dart index ec77987..2617b7b 100644 --- a/lib/pages/OpenSim.dart +++ b/lib/pages/OpenSim.dart @@ -117,7 +117,7 @@ class OpenSimPageState extends State { SharedPreferences prefs = await SharedPreferences.getInstance(); if (prefs.containsKey("settings")) { String encoded = prefs.getString("settings")!; - CompoundTag tag = await NbtIo.readBase64String(encoded); + CompoundTag tag = await NbtIo.readBase64String(encoded) as CompoundTag; if (tag.containsKey("user")) { settings.currentUser = User.load(tag.get("user") as CompoundTag); settings.loggedIn = true; diff --git a/lib/pages/shitbot.dart b/lib/pages/shitbot.dart new file mode 100644 index 0000000..023bb71 --- /dev/null +++ b/lib/pages/shitbot.dart @@ -0,0 +1,30 @@ +import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; +import 'package:zontreck/Constants.dart'; + +class ShitBotProductPage extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text("ShitBot Promotional Materials"), + backgroundColor: Constants.TITLEBAR_COLOR, + ), + body: Padding( + padding: EdgeInsets.all(8), + child: SingleChildScrollView( + child: Column( + children: [ + Center( + child: Text( + "APRIL FOOLS", + style: TextStyle(fontSize: 64), + ), + ) + ], + ), + ), + ), + ); + } +} diff --git a/pubspec.yaml b/pubspec.yaml index 7eb703c..e37a39b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.082924+0758 +version: 1.0.040125+0311 environment: sdk: ^3.6.1 @@ -34,14 +34,14 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^1.0.8 - libac_dart: - hosted: https://git.zontreck.com/api/packages/AriasCreations/pub/ - version: ^1.4.012225+0413 dio: ^5.8.0+1 shared_preferences: ^2.5.1 footer: ^0.0.4 crypto: ^3.0.6 url_launcher: ^6.3.1 + libac_dart: + hosted: https://git.zontreck.com/api/packages/Packages/pub/ + version: 1.4.20325+1215 dev_dependencies: flutter_test: