From 994f2cc130bfd094bb8526c1bff79130d6d0230f Mon Sep 17 00:00:00 2001 From: TomH1004 Date: Wed, 15 Oct 2025 14:27:11 +0200 Subject: [PATCH] removed licenses --- lib/screens/home_screen.dart | 12 +++- lib/widgets/about_dialog.dart | 117 +++++++++++++++++++++------------- 2 files changed, 82 insertions(+), 47 deletions(-) diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index 16756eb..4f6264f 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -173,7 +173,17 @@ class _HomeScreenState extends State { Widget build(BuildContext context) { return Scaffold( appBar: AppBar( - title: const Text('UnityUDP'), + title: const Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text('UnityUDP'), + Text( + 'by Tom Hempel', + style: TextStyle(fontSize: 12, fontWeight: FontWeight.normal), + ), + ], + ), actions: [ if (kIsWeb) Padding( diff --git a/lib/widgets/about_dialog.dart b/lib/widgets/about_dialog.dart index 0142333..b1afd65 100644 --- a/lib/widgets/about_dialog.dart +++ b/lib/widgets/about_dialog.dart @@ -5,57 +5,82 @@ class AppAboutDialog extends StatelessWidget { @override Widget build(BuildContext context) { - return AboutDialog( - applicationName: 'UnityUDP', - applicationVersion: '1.0.0', - applicationIcon: Container( - padding: const EdgeInsets.all(8), - decoration: BoxDecoration( - color: Theme.of(context).colorScheme.primaryContainer, - borderRadius: BorderRadius.circular(12), - ), - child: Icon( - Icons.send, - size: 32, - color: Theme.of(context).colorScheme.onPrimaryContainer, - ), - ), - children: [ - const SizedBox(height: 16), - const Text( - 'A simple and efficient app for sending UDP packages over custom ports.', - ), - const SizedBox(height: 16), - const Text( - 'Features:', - style: TextStyle(fontWeight: FontWeight.bold), - ), - const SizedBox(height: 8), - const Text('• Create and manage multiple projects'), - const Text('• Configure custom UDP ports'), - const Text('• Store pre-defined packages'), - const Text('• Quick send functionality'), - const Text('• JSON file storage (easily shareable)'), - const SizedBox(height: 16), - const Divider(), - const SizedBox(height: 16), - Row( - children: [ - Icon( - Icons.code, - size: 20, - color: Theme.of(context).colorScheme.primary, + return AlertDialog( + title: Row( + children: [ + Container( + padding: const EdgeInsets.all(8), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.primaryContainer, + borderRadius: BorderRadius.circular(12), ), - const SizedBox(width: 8), - const Text( - 'Developed by Tom Hempel', - style: TextStyle( - fontWeight: FontWeight.bold, - fontSize: 14, + child: Icon( + Icons.send, + size: 24, + color: Theme.of(context).colorScheme.onPrimaryContainer, + ), + ), + const SizedBox(width: 12), + const Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text('UnityUDP'), + Text( + 'Version 1.0.0', + style: TextStyle(fontSize: 12, fontWeight: FontWeight.normal), ), + ], + ), + ], + ), + content: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + const Text( + 'A simple and efficient app for sending UDP packages over custom ports.', + ), + const SizedBox(height: 16), + const Text( + 'Features:', + style: TextStyle(fontWeight: FontWeight.bold), + ), + const SizedBox(height: 8), + const Text('• Create and manage multiple projects'), + const Text('• Configure custom UDP ports'), + const Text('• Store pre-defined packages'), + const Text('• Quick send functionality'), + const Text('• JSON file storage (easily shareable)'), + const SizedBox(height: 16), + const Divider(), + const SizedBox(height: 16), + Row( + children: [ + Icon( + Icons.code, + size: 20, + color: Theme.of(context).colorScheme.primary, + ), + const SizedBox(width: 8), + const Text( + 'Developed by Tom Hempel', + style: TextStyle( + fontWeight: FontWeight.bold, + fontSize: 14, + ), + ), + ], ), ], ), + ), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context), + child: const Text('Close'), + ), ], ); }