-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #304 from danemadsen/main
refactor
- Loading branch information
Showing
16 changed files
with
1,106 additions
and
1,236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_linkify/flutter_linkify.dart'; | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
class AboutPage extends StatelessWidget { | ||
const AboutPage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: AppBar( | ||
elevation: 0.0, | ||
leading: IconButton( | ||
icon: const Icon(Icons.arrow_back), | ||
onPressed: () { | ||
Navigator.of(context).pop(); | ||
}, | ||
), | ||
flexibleSpace: Container( | ||
decoration: BoxDecoration( | ||
color: Theme.of(context).colorScheme.background, | ||
), | ||
), | ||
title: const Text("About"), | ||
), | ||
body: SingleChildScrollView( | ||
padding: const EdgeInsets.symmetric(horizontal: 40.0, vertical: 0.0), | ||
child: Column( | ||
children: [ | ||
const SizedBox(height: 20.0), | ||
Image.asset( | ||
"assets/maid.png", | ||
width: 150, | ||
height: 150, | ||
), | ||
const SizedBox(height: 30.0), | ||
Text( | ||
'Maid', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.titleLarge, | ||
), | ||
const SizedBox(height: 20.0), | ||
Linkify( | ||
onOpen: _onOpen, | ||
text: 'Maid is a cross-platform open source app for interacting with GGUF Large Language Models. ' | ||
'This app is distributed under the MIT License. The source code of this project can be found ' | ||
'on github ( https://github.com/MaidFoundation/Maid ). This app was originally forked off sherpa which ' | ||
'can also be found on github ( https://github.com/Bip-Rep/sherpa ). Maid is not affiliated with Meta, ' | ||
'OpenAI or any other company that provides a model which can be used with this app. Model files are ' | ||
'not included with this app and must be downloaded separately. Model files can be downloaded online ' | ||
'at https://huggingface.co', | ||
style: Theme.of(context).textTheme.bodyMedium | ||
), | ||
const SizedBox(height: 20.0), | ||
Text( | ||
'Contributors', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.titleMedium, | ||
), | ||
const SizedBox(height: 20.0), | ||
Text( | ||
'Lead Maintainer', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.titleSmall, | ||
), | ||
Text( | ||
'Dane Madsen', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.bodyMedium, | ||
), | ||
const SizedBox(height: 20.0), | ||
Text( | ||
'Maid Contributors', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.titleSmall, | ||
), | ||
Text( | ||
'sfiannaca', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.bodyMedium, | ||
), | ||
Text( | ||
'gardner', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.bodyMedium, | ||
), | ||
const SizedBox(height: 20.0), | ||
Text( | ||
'Sherpa Contributors', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.titleSmall, | ||
), | ||
Text( | ||
'ThibautLEAUX', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.bodyMedium, | ||
), | ||
Text( | ||
'Natakout', | ||
textAlign: TextAlign.center, | ||
style: Theme.of(context).textTheme.bodyMedium, | ||
), | ||
] | ||
), | ||
) | ||
); | ||
} | ||
|
||
Future<void> _onOpen(LinkableElement link) async { | ||
if (!await launchUrl(Uri.parse(link.url))) { | ||
throw Exception('Could not launch ${link.url}'); | ||
} | ||
} | ||
} |
Oops, something went wrong.