-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
1,197 additions
and
874 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
## Livine | ||
A health-check and food planner app, runs on android and windows platform | ||
|
||
Livine isn't available in Israel and it will show a banned message | ||
|
||
# Here are android screenshots | ||
|
||
![Livine home page](screenshots/export_1.jpg) | ||
|
||
![Livine home page](screenshots/export_2.jpg) | ||
|
||
## Download | ||
### [Download for Android](https://github.com/Livine-Project/livine/releases/latest) | ||
|
||
|
||
|
||
> Livine isn't available in Israel and it will show a banned message | ||
|
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
46 changes: 46 additions & 0 deletions
46
lib/src/common_widgets/confetti_dialog/confetti_dialog.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,46 @@ | ||
import 'dart:math'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:confetti/confetti.dart'; | ||
import 'package:livine/src/utils/hooks/confetti_controller.dart'; | ||
|
||
Future<T?> showConfettiDialog<T>({ | ||
required BuildContext context, | ||
WidgetBuilder? builder, | ||
bool barrierDismissible = true, | ||
Color? barrierColor, | ||
bool useSafeArea = true, | ||
bool useRootNavigator = true, | ||
RouteSettings? routeSettings, | ||
Alignment confettiAlignment = Alignment.topCenter, | ||
}) { | ||
final pageBuilder = Builder( | ||
builder: builder!, | ||
); | ||
print("MW"); | ||
final _confettiController = | ||
ConfettiController(duration: Duration(seconds: 5)); | ||
_confettiController.play(); | ||
return showDialog( | ||
context: context, | ||
builder: (BuildContext buildContext) { | ||
return Stack( | ||
children: [ | ||
pageBuilder, | ||
Align( | ||
alignment: confettiAlignment, | ||
child: ConfettiWidget( | ||
confettiController: _confettiController, | ||
emissionFrequency: 0.1, | ||
blastDirection: pi / 2), | ||
), | ||
], | ||
); | ||
}, | ||
barrierDismissible: barrierDismissible, | ||
barrierColor: barrierColor, | ||
useSafeArea: useSafeArea, | ||
useRootNavigator: useRootNavigator, | ||
routeSettings: routeSettings, | ||
); | ||
} |
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,49 @@ | ||
import 'package:cached_network_image/cached_network_image.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class RecipeUserCard extends StatelessWidget { | ||
const RecipeUserCard({ | ||
super.key, | ||
required this.imageURL, | ||
required this.name, | ||
required this.onTap | ||
}); | ||
|
||
final String imageURL, name; | ||
final void Function()? onTap; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return GestureDetector( | ||
onTap: onTap, | ||
child: Card( | ||
margin: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), | ||
child: Column( | ||
children: [ | ||
ClipRRect( | ||
borderRadius: const BorderRadius.vertical( | ||
top: Radius.circular(10.0), bottom: Radius.circular(10.0)), | ||
child: CachedNetworkImage( | ||
imageUrl: imageURL, | ||
height: 140, | ||
errorWidget: (context, url, error) => | ||
const Icon(Icons.broken_image_outlined), | ||
width: MediaQuery.of(context).size.width, | ||
fit: BoxFit.cover, | ||
), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: Text( | ||
name, | ||
maxLines: 2, | ||
overflow: TextOverflow.ellipsis, | ||
style: const TextStyle(fontFamily: 'Kine', fontSize: 20.0), | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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,11 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class TextWithFont extends StatelessWidget { | ||
const TextWithFont({super.key,required this.text, this.fontSize}); | ||
final String text; | ||
final double? fontSize; | ||
@override | ||
Widget build(BuildContext context) { | ||
return Text(text,style: TextStyle(fontSize: fontSize,fontFamily: 'Kine'),); | ||
} | ||
} |
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
Oops, something went wrong.