Skip to content

Commit

Permalink
Add about us page
Browse files Browse the repository at this point in the history
  • Loading branch information
yerzhant committed Jul 15, 2021
1 parent eba3e2a commit 1c42e43
Show file tree
Hide file tree
Showing 16 changed files with 308 additions and 64 deletions.
6 changes: 6 additions & 0 deletions assets/icons/about-us/apps.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/about-us/evaluate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/icons/about-us/fb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/icons/about-us/insta.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions assets/icons/about-us/proposals.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/icons/about-us/share.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/icons/about-us/telegram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions assets/icons/about-us/web.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/logo-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/tafsir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions lib/app_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ class AppWidget extends StatelessWidget {
return ThemeData(
primaryColor: theme.primary,
textTheme: Theme.of(context).textTheme.copyWith(
headline4: TextStyle(
fontSize: 14,
fontWeight: FontWeight.w500,
color: theme.text,
),
headline5: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
Expand Down
13 changes: 13 additions & 0 deletions lib/common/global_functions.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import 'dart:io';

import 'package:share/share.dart';

Future<void> shareApp() async {
var text = 'Тафсир Корана\n\n';

text += Platform.isIOS
? 'https://apps.apple.com/app/id1542515717'
: 'https://play.google.com/store/apps/details?id=ru.azan.tafsir';

await Share.share(text, subject: 'Тафсир Корана');
}
2 changes: 2 additions & 0 deletions lib/home/home_module.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter_modular/flutter_modular.dart';
import 'package:tafsir/bookmarks/bloc/bookmarks_bloc.dart';
import 'package:tafsir/bookmarks/repo/bookmark_repo.dart';
import 'package:tafsir/home/ui/about_us_page.dart';
import 'package:tafsir/home/ui/home_page.dart';
import 'package:tafsir/offline/bloc/offline_bloc.dart';
import 'package:tafsir/offline/ui/offline_page.dart';
Expand All @@ -23,5 +24,6 @@ class HomeModule extends Module {
List<ModularRoute> get routes => [
ChildRoute('/', child: (_, __) => HomePage()),
ChildRoute('/offline', child: (_, __) => const OfflinePage()),
ChildRoute('/about-us', child: (_, __) => const AboutUsPage()),
];
}
Loading

0 comments on commit 1c42e43

Please sign in to comment.