LibAC update, and adds a about libac page.

This commit is contained in:
zontreck 2024-08-24 08:19:15 -07:00
parent 9987abae30
commit 0bc5183444
5 changed files with 72 additions and 6 deletions

View file

@ -8,8 +8,9 @@ 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.062324.1745";
static const COPYRIGHT = "Copyright 2024 - Piccari Creations. All rights Reserved";
static const VERSION = "Version 1.0.082424+0818";
static const COPYRIGHT =
"Copyright 2024 - Piccari Creations. All rights Reserved";
static const CLIENTPSK =
"f5c6caf3efe1ec5aa4b7c572f92aa14782b7be34b4c7844fa9c6d47fdf94246";

View file

@ -6,6 +6,7 @@ import 'package:zontreck/pages/LoginAccount.dart';
import 'package:zontreck/pages/OpenSim.dart';
import 'package:zontreck/pages/Portfolio.dart';
import 'package:zontreck/pages/RegisterAccount.dart';
import 'package:zontreck/pages/libac.dart';
class MainPage extends StatelessWidget {
const MainPage({super.key});
@ -19,7 +20,8 @@ class MainPage extends StatelessWidget {
"/opensim/register": (context) => const RegisterAccountPage(),
"/opensim/login": (context) => const LoginAccountPage(),
"/portfolio": (context) => const PortfolioPage(),
"/portfolio/coun": (context) => const CardsOfUtterNonsense()
"/portfolio/coun": (context) => const CardsOfUtterNonsense(),
"/portfolio/libac": (context) => const LibACAbout()
},
theme: ThemeData.dark(),
);

View file

@ -48,7 +48,9 @@ class PortfolioPage extends StatelessWidget {
title: const Text("Lib AC"),
body: const Text(
("Aria's Creations CommonCode Library. Oh hey, this website uses that! This is written in pure Dart, with no Flutter dependencies. The library is meant to be compatible with any dart project I work on")),
onTap: () {}),
onTap: () {
Navigator.pushNamed(context, "/portfolio/libac");
}),
PortfolioEntry(
title: const Text("NBT Editor"),
body: const Text(

60
lib/pages/libac.dart Normal file
View file

@ -0,0 +1,60 @@
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';
import 'package:zontreck/Constants.dart';
class LibACAbout extends StatefulWidget {
const LibACAbout({super.key});
@override
State<StatefulWidget> createState() {
return LibACAboutPage();
}
}
class LibACAboutPage extends State<LibACAbout> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Constants.TITLEBAR_COLOR,
title: const Text("Portfolio - LibAC"),
),
body: Padding(
padding: const EdgeInsets.all(8),
child: SingleChildScrollView(
child: Column(
children: [
const ListTile(
title: Text("LibAC"),
subtitle: Text(
"Aria's Creations Common Code Library (LibAC) is a library of dart code. This library exists for many different languages, each serving a unique purpose. In java, the library provides many helpers that do not exist in java, and in Dart, it provides some utilities that do exist in java but not in dart, as well as migrating some of my utilities over to dart from the java library."),
),
ListTile(
title: const Text("DartDoc"),
subtitle: const Text(
"You can click here to visit the Dart docs for the library to view usage and APIs\nIf clicking here does not work: https://api.zontreck.com/dartdocs/libac/"),
onTap: () async {
if (!await launchUrl(Uri(
host: "api.zontreck.com",
scheme: "https",
port: 443,
path: "dartdocs/libac/"))) {
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
content: Text("Could not open the requested webpage")));
}
},
),
const ListTile(
title: Text(
"As a part of the bundled LibAC library, several binaries do exist."),
subtitle: Text(
"1. Double Breasted Interrupted Key Cipher (DBIKC), this is a fictional cipher seen in a episode or two of Supergirl, and was created by Lex Luthor. Wanna feel like a villain and encode your top secret messages in a Luthor cipher? Now you can.\n\n2. Make File System Report (mkfsreport), This tool will scan a path, and tally up the total used size and help you find what file(s) are using all your space."),
)
],
),
),
),
);
}
}

View file

@ -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.1.0+1
version: 1.0.082424+0818
environment:
sdk: '>=3.3.4 <4.0.0'
@ -37,11 +37,12 @@ dependencies:
cupertino_icons: ^1.0.6
libac_dart:
hosted: https://git.zontreck.com/api/packages/AriasCreations/pub/
version: 1.0.33
version: 1.2.082424+0723
dio: ^5.4.3+1
shared_preferences: ^2.2.3
footer: ^0.0.4
crypto: ^3.0.3
url_launcher: ^6.3.0
dev_dependencies:
flutter_test: