Skip to content

Commit

Permalink
Merge pull request #304 from danemadsen/main
Browse files Browse the repository at this point in the history
refactor
  • Loading branch information
danemadsen committed Jan 26, 2024
2 parents 517a4d0 + dc84176 commit 02b81ee
Show file tree
Hide file tree
Showing 16 changed files with 1,106 additions and 1,236 deletions.
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}');
}
}
}

0 comments on commit 02b81ee

Please sign in to comment.