-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): add information about genetics resources
- Loading branch information
Showing
8 changed files
with
64 additions
and
18 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
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
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
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,9 @@ | ||
import '../common/module.dart'; | ||
|
||
// For generated routes | ||
export 'pages/genetic_information.dart'; | ||
|
||
AutoRoute geneticInformationRoute() => AutoRoute( | ||
path: 'genetic-information', | ||
page: GeneticInformationRoute.page, | ||
); |
28 changes: 28 additions & 0 deletions
28
app/lib/genetic_information/pages/genetic_information.dart
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,28 @@ | ||
import 'package:url_launcher/url_launcher.dart'; | ||
|
||
import '../../common/module.dart'; | ||
|
||
@RoutePage() | ||
class GeneticInformationPage extends HookWidget { | ||
const GeneticInformationPage({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return pageScaffold( | ||
title: context.l10n.more_page_genetic_information, | ||
body: [ | ||
Padding( | ||
padding: const EdgeInsets.only( | ||
left: PharMeTheme.smallSpace, | ||
right: PharMeTheme.smallSpace, | ||
bottom: PharMeTheme.smallSpace, | ||
), | ||
child: LargeMarkdownBody( | ||
data: context.l10n.more_page_genetic_information_markdown, | ||
onTapLink: (text, href, title) => launchUrl(Uri.parse(href!)), | ||
), | ||
), | ||
] | ||
); | ||
} | ||
} |
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
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
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