-
-
Notifications
You must be signed in to change notification settings - Fork 48
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 #242 from JordyHers-org/dev
Merge `dev` into `master`
- Loading branch information
Showing
114 changed files
with
2,037 additions
and
1,070 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,32 @@ | ||
## How to Contribute | ||
|
||
1. **Read The Branch naming convention** | ||
> <a href="https://docs.google.com/viewer?url=https://github.com/JordyHers-org/Times-up-flutter/files/12828818/how_to_create_a_branch.pdf">How to name a branch</a> | ||
2. **Fork and Clone the Project** | ||
```bash | ||
git clone https://github.com/JordyHers-org/Times-up-flutter.git | ||
cd Times-up-flutter/ | ||
``` | ||
|
||
3. **Install Flutter Version** | ||
> Install FVM via Homebrew and use Flutter version 3.7.12. | ||
```bash | ||
brew install fvm | ||
fvm install 3.7.12 | ||
``` | ||
|
||
4. **Request Firebase Options File** | ||
> Request the Firebase options file from the Project Owner and place it in the appropriate location. From discord server | ||
Jordyhers [Discord- JordyHers](https://discord.gg/e4ppDx9Zcy) | ||
|
||
5. **Extra** | ||
> For child's pictures feel free to use any of the pictures available. | ||
| | | | | ||
|-|-|-| | ||
| <img width="115" alt="Neymar" src="https://github.com/JordyHers-org/Times-up-flutter/assets/49708438/c04ab191-c498-4ca1-bdab-84111babe6b3"> | <img width="115" alt="Momo" src="https://github.com/JordyHers-org/Times-up-flutter/assets/49708438/db2f3dd2-2a09-4e82-b26b-50f860679f3f"> | <img width="115" alt="Gareth" src="https://github.com/JordyHers-org/Times-up-flutter/assets/49708438/8faee404-8fb4-497d-abaf-82576df91621"> | ||
| <img width="115" alt="Titi" src="https://github.com/JordyHers-org/Times-up-flutter/assets/49708438/48ab9c3d-e180-482f-a295-54a00b76607b"> | <img width="115" alt="Bruyne" src="https://github.com/JordyHers-org/Times-up-flutter/assets/49708438/fa620a3e-2450-4434-b84d-70afbacdc2ec"> | <img width="115" alt="Kylian" src="https://github.com/JordyHers-org/Times-up-flutter/assets/49708438/bb6c2be5-b8fc-4178-8794-2c0e6e1349db"> | ||
| <img width="115" alt="Leo" src="https://github.com/JordyHers-org/Times-up-flutter/assets/49708438/9a093894-06af-487e-8ca1-edf35c9ece03"> | <img width="115" alt="Sally" src="https://github.com/JordyHers-org/Times-up-flutter/assets/49708438/31155608-2cc2-4e3e-815c-07f90aa1c27a"> | <img width="115" alt="Harry" src="https://github.com/JordyHers-org/Times-up-flutter/assets/49708438/c9302548-564c-490a-b0a5-feb74d2113cf"> | | ||
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,88 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:times_up_flutter/app/helpers/parsing_extension.dart'; | ||
import 'package:times_up_flutter/models/child_model/child_model.dart'; | ||
|
||
class AppListPage extends StatelessWidget { | ||
const AppListPage({ | ||
required this.childModel, | ||
Key? key, | ||
}) : super(key: key); | ||
|
||
final ChildModel childModel; | ||
|
||
static Future<void> show(BuildContext context, ChildModel model) async { | ||
await Navigator.of(context).push( | ||
PageRouteBuilder<Widget>( | ||
pageBuilder: (context, animation, secondaryAnimation) { | ||
return AppListPage(childModel: model); | ||
}, | ||
transitionsBuilder: (context, animation, secondaryAnimation, child) { | ||
const begin = Offset(1, 0); | ||
const end = Offset.zero; | ||
const curve = Curves.easeInOut; | ||
final tween = | ||
Tween(begin: begin, end: end).chain(CurveTween(curve: curve)); | ||
final offsetAnimation = animation.drive(tween); | ||
return SlideTransition( | ||
position: offsetAnimation, | ||
child: child, | ||
); | ||
}, | ||
transitionDuration: const Duration(milliseconds: 400), | ||
), | ||
); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
final themeData = Theme.of(context); | ||
|
||
return Scaffold( | ||
appBar: AppBar( | ||
leading: IconButton( | ||
icon: const Icon(Icons.chevron_left), | ||
onPressed: () => Navigator.of(context).pop(), | ||
), | ||
elevation: 0, | ||
backgroundColor: themeData.scaffoldBackgroundColor, | ||
), | ||
body: ListView.builder( | ||
physics: const BouncingScrollPhysics( | ||
decelerationRate: ScrollDecelerationRate.fast, | ||
), | ||
itemCount: childModel.appsUsageModel.length, | ||
itemBuilder: (context, index) { | ||
return Column( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
ListTile( | ||
leading: childModel.appsUsageModel[index].appIcon != null | ||
? Image.memory( | ||
childModel.appsUsageModel[index].appIcon!, | ||
height: 35, | ||
) | ||
: const Icon(Icons.android), | ||
title: Text( | ||
childModel.appsUsageModel[index].appName, | ||
style: TextStyle( | ||
fontSize: 15, | ||
fontWeight: FontWeight.bold, | ||
color: themeData.dividerColor, | ||
), | ||
), | ||
trailing: Text( | ||
childModel.appsUsageModel[index].usage.toString().t(), | ||
style: TextStyle( | ||
fontSize: 14, | ||
fontWeight: FontWeight.w600, | ||
color: themeData.dividerColor, | ||
), | ||
), | ||
), | ||
], | ||
); | ||
}, | ||
), | ||
); | ||
} | ||
} |
Oops, something went wrong.