Skip to content

Commit 65f1e7c

Browse files
committed
optimizations-ui-backend
1 parent e36abe1 commit 65f1e7c

File tree

9 files changed

+91
-80
lines changed

9 files changed

+91
-80
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ jobs:
3838
uses: ncipollo/release-action@v1
3939
with:
4040
artifacts: "build/app/outputs/apk/release/*"
41-
tag: v2.0.5.1
41+
tag: v2.0.6
4242
token: ${{ secrets.TOKEN }}
43-
name: "stable-v2.0.5"
43+
name: "stable-v2.0.6"
4444
body: |
45-
## What's New in v2.0.5.1
45+
## What's New in v2.0.6
4646
47+
- **Fixed Performance and Responsiveness Issues and Improved UI.
4748
- **New Feature**: Fast Login with Oauth2 independent of Firebase.
4849
- **Bug Fixes**: Resolved major bugs pertaining to login & signup leaks & getting ready for syncfusion.
4950
- **Performance Improvements**: Optimized the load response times.
5051
- **UI Enhancements**: Updated the home UI and added more animations.
5152
52-
### Known Issues
53-
- Some devices may still experience song player issues, will be solved in future releases .
53+
### Known Issues are Resolved.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![Mindful-App](https://socialify.git.ci/ARYPROGRAMMER/Mindful-App/image?description=1&descriptionEditable=Mindful%20is%20a%20mental%20wellness%20app%20designed%20to%20support%20users%20in%20managing%20stress%20and%20anxiety&font=Source%20Code%20Pro&language=1&name=1&owner=1&pattern=Diagonal%20Stripes&stargazers=1&theme=Dark)
22

33
[![Build Status](https://github.com/travisjeffery/timecop/workflows/CI/badge.svg)](https://github.com/ARYPROGRAMMER/Mindful-App/actions)
4-
![version](https://img.shields.io/badge/version-2.0.5.1-blue)
4+
![version](https://img.shields.io/badge/version-2.0.6-green)
55

66
<p align="center">
77
<img src="https://img.shields.io/badge/firebase-ffca28?style=for-the-badge&logo=firebase&logoColor=black"/>
@@ -12,12 +12,17 @@
1212

1313
**APP STATUS** : ALL CORE FUNCTIONALITIES WORKING (Deployed NodeJs & Postgresql on Render)
1414

15-
## What's New in v2.0.5.1 (**Images in readme.md Not Updated**)
15+
## What's New in v2.0.6 (Images in **README.md** are **not** updated)
16+
17+
- **Fixed Performance and Responsiveness Issues and Improved UI.
1618
- **New Feature**: Fast Login with Oauth2 independent of Firebase.
1719
- **Bug Fixes**: Resolved major bugs pertaining to login & signup leaks & getting ready for syncfusion.
1820
- **Performance Improvements**: Optimized the load response times.
1921
- **UI Enhancements**: Updated the home UI and added more animations.
2022

23+
### Known Issues are Resolved.
24+
25+
2126
[DEMO LINK](https://vimeo.com/1013864504)
2227

2328
[Blog Post](https://dev.to/aryprogrammer/building-mindful-a-mental-wellness-app-with-nodejs-ai-and-clean-architecture-3n9d)

lib/core/theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DefaultColors {
2626
class AppTheme {
2727
static ThemeData get lightTheme {
2828
return ThemeData(
29-
primaryColor: const Color(0xFFAEAFF7),
29+
primaryColor: Colors.white,
3030
focusColor: const Color(0xFF371B34),
3131
textTheme: TextTheme(
3232
bodySmall: GoogleFonts.alegreyaSans(

lib/features/auth/presentation/auth/pages/signin.dart

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SignIn extends StatelessWidget {
2323
final myboxx = Hive.box('lastlogin');
2424
if (user == null) {
2525
ScaffoldMessenger.of(context)
26-
.showSnackBar(const SnackBar(content: Text("Faliure")));
26+
.showSnackBar(const SnackBar(content: Text("Cancelled by User")));
2727
} else {
2828
myboxx.put('google', 'true');
2929
Navigator.pushAndRemoveUntil(
@@ -50,15 +50,12 @@ class SignIn extends StatelessWidget {
5050
scrollDirection: Axis.vertical,
5151
child: Padding(
5252
padding: const EdgeInsets.symmetric(
53-
vertical: 40,
53+
vertical: 20,
5454
horizontal: 40,
5555
),
5656
child: Column(
5757
crossAxisAlignment: CrossAxisAlignment.center,
5858
children: [
59-
const SizedBox(
60-
height: 10,
61-
),
6259
const Text(
6360
"Get In Your Mood",
6461
style: TextStyle(
@@ -68,7 +65,7 @@ class SignIn extends StatelessWidget {
6865
fontWeight: FontWeight.bold),
6966
),
7067
const SizedBox(
71-
height: 80,
68+
height: 50,
7269
),
7370
_registerText(),
7471
const SizedBox(

lib/features/meditation/presentation/pages/meditation_page.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ class MeditationPage extends StatelessWidget {
2525
GoogleSignInAccount? user2 = GoogleSignInApi.details();
2626

2727
return Scaffold(
28-
backgroundColor: DefaultColors.white,
28+
backgroundColor: Colors.white,
2929
appBar: AppBar(
30-
elevation: 0,
30+
backgroundColor: DefaultColors.white,
31+
centerTitle: false,
32+
elevation: 10,
33+
shadowColor: Colors.black,
3134
leading: Image.asset(
3235
'assets/menu_burger.png',
3336
),
@@ -47,7 +50,7 @@ class MeditationPage extends StatelessWidget {
4750
),
4851
body: Container(
4952
color: Colors.white,
50-
padding: const EdgeInsets.all(12),
53+
padding: const EdgeInsets.only(top: 12, left: 12, right: 12),
5154
child: SingleChildScrollView(
5255
child: Column(
5356
crossAxisAlignment: CrossAxisAlignment.start,
@@ -104,7 +107,7 @@ class MeditationPage extends StatelessWidget {
104107
],
105108
),
106109
const SizedBox(
107-
height: 32,
110+
height: 30,
108111
),
109112
Text(
110113
"How are you feeling today ?",

lib/features/meditation/presentation/pages/settingscreen.dart

Lines changed: 38 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'package:firebase_auth/firebase_auth.dart';
22
import 'package:flutter/material.dart';
33
import 'package:hive/hive.dart';
4+
import 'package:mental_health/core/theme.dart';
45
import 'package:mental_health/features/auth/domain/entities/auth/googleapisignin.dart';
56
import 'package:mental_health/features/meditation/presentation/pages/generalSettings/fieldUpdates.dart';
67
import 'package:mental_health/presentation/onboarding/onboarding.dart';
@@ -11,6 +12,43 @@ class SettingScreen extends StatelessWidget {
1112
@override
1213
Widget build(BuildContext context) {
1314
return Scaffold(
15+
appBar: AppBar(
16+
backgroundColor: DefaultColors.white,
17+
elevation: 10,
18+
shadowColor: Colors.black,
19+
leading: Container(
20+
decoration: const BoxDecoration(
21+
image: DecorationImage(
22+
image: AssetImage('assets/essentials/back.png'),
23+
),
24+
),
25+
),
26+
title: Row(
27+
mainAxisAlignment: MainAxisAlignment.start,
28+
children: [
29+
const Text(
30+
'Settings',
31+
style: TextStyle(
32+
color: Colors.black,
33+
fontSize: 20,
34+
fontFamily: 'Inter',
35+
fontWeight: FontWeight.w400,
36+
height: 0,
37+
),
38+
),
39+
Container(
40+
width: 53,
41+
height: 48,
42+
decoration: const BoxDecoration(
43+
image: DecorationImage(
44+
image: AssetImage('assets/essentials/set.png'),
45+
fit: BoxFit.contain,
46+
),
47+
),
48+
),
49+
],
50+
),
51+
),
1452
body: SingleChildScrollView(
1553
scrollDirection: Axis.vertical,
1654
child: Container(
@@ -20,34 +58,6 @@ class SettingScreen extends StatelessWidget {
2058
decoration: const BoxDecoration(color: Colors.white),
2159
child: Stack(
2260
children: [
23-
Positioned(
24-
left: 142,
25-
top: 35,
26-
child: Container(
27-
width: 53,
28-
height: 48,
29-
decoration: const BoxDecoration(
30-
image: DecorationImage(
31-
image: AssetImage('assets/essentials/set.png'),
32-
fit: BoxFit.contain,
33-
),
34-
),
35-
),
36-
),
37-
Positioned(
38-
left: 27,
39-
top: 45,
40-
child: Container(
41-
width: 29,
42-
height: 29,
43-
decoration: const BoxDecoration(
44-
image: DecorationImage(
45-
image: AssetImage('assets/essentials/back.png'),
46-
fit: BoxFit.contain,
47-
),
48-
),
49-
),
50-
),
5161
Positioned(
5262
left: 54,
5363
top: 230,
@@ -227,24 +237,6 @@ class SettingScreen extends StatelessWidget {
227237
),
228238
),
229239
),
230-
const Positioned(
231-
left: 190,
232-
top: 45,
233-
child: SizedBox(
234-
width: 82,
235-
height: 27,
236-
child: Text(
237-
'Settings',
238-
style: TextStyle(
239-
color: Colors.black,
240-
fontSize: 20,
241-
fontFamily: 'Inter',
242-
fontWeight: FontWeight.w400,
243-
height: 0,
244-
),
245-
),
246-
),
247-
),
248240
Positioned(
249241
left: 89,
250242
top: 234,

lib/presentation/bottomNavBar/widgets/bottomNavBar.dart

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,20 @@ class Bottomnavbar extends StatelessWidget {
1111

1212
@override
1313
Widget build(BuildContext context) {
14-
return BottomNavigationBar(
15-
items: items,
16-
currentIndex: currentIndex,
17-
onTap: (index) {
18-
context.read<NavBloc>().add(NavigateTo(index: index));
19-
},
14+
return Container(
15+
height: 110,
16+
color: Colors.transparent,
17+
padding: const EdgeInsets.only(top: 16, bottom: 20, right: 20, left: 20),
18+
child: ClipRRect(
19+
borderRadius: BorderRadius.circular(40),
20+
child: BottomNavigationBar(
21+
items: items,
22+
currentIndex: currentIndex,
23+
onTap: (index) {
24+
context.read<NavBloc>().add(NavigateTo(index: index));
25+
},
26+
),
27+
),
2028
);
2129
}
2230
}

lib/presentation/homePage/home_page.dart

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,26 @@ class HomePage extends StatelessWidget {
1717
Playlistscreen(),
1818
const SettingScreen(),
1919
];
20+
static Map<String, String> mappings = {
21+
'assets/menu_home.png': 'Home',
22+
'assets/ais.png': 'FER',
23+
'assets/menu_songs.png': 'Music',
24+
'assets/settings.png': 'Settings'
25+
};
2026

2127
BottomNavigationBarItem createItem(
2228
{required String assetName,
2329
required bool isActive,
2430
bool settings = false,
2531
required BuildContext context}) {
2632
return BottomNavigationBarItem(
33+
backgroundColor: Colors.black.withOpacity(0.7),
2734
icon: Image.asset(
2835
assetName,
29-
color: isActive
30-
? Theme.of(context).focusColor
31-
: Theme.of(context).primaryColor,
32-
height: settings ? 30 : 45,
36+
color: isActive ? Colors.blue : Colors.white,
37+
height: settings ? 25 : 40,
3338
),
34-
label: '');
39+
label: mappings[assetName]);
3540
}
3641

3742
@override
@@ -45,6 +50,7 @@ class HomePage extends StatelessWidget {
4550
return pages[0];
4651
},
4752
),
53+
extendBody: true,
4854
bottomNavigationBar:
4955
BlocBuilder<NavBloc, NavState>(builder: (context, state) {
5056
int currentIndex = 0;
@@ -57,10 +63,10 @@ class HomePage extends StatelessWidget {
5763
isActive: currentIndex == 0,
5864
context: context),
5965
createItem(
60-
assetName: 'assets/ais.png',
61-
isActive: currentIndex == 1,
62-
context: context,
63-
),
66+
assetName: 'assets/ais.png',
67+
isActive: currentIndex == 1,
68+
context: context,
69+
settings: true),
6470
createItem(
6571
assetName: 'assets/menu_songs.png',
6672
isActive: currentIndex == 2,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 2.0.5
19+
version: 2.0.6
2020

2121
environment:
2222
sdk: ^3.5.3

0 commit comments

Comments
 (0)