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

refactor #304

Merged
merged 9 commits into from
Jan 26, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
114 changes: 114 additions & 0 deletions lib/pages/about_page.dart
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}');
}
}
}