feat: Navigation bar a bit higher for better rendering on IOS

This commit is contained in:
sBubshait 2025-08-03 10:45:27 +03:00
parent 325eec7c8f
commit 8295e5bf03
3 changed files with 346 additions and 326 deletions

View File

@ -59,10 +59,8 @@ class _SplashScreenState extends State<SplashScreen> {
if (userData['activated'] == 0) {
Navigator.of(context).pushReplacement(
MaterialPageRoute(
builder: (context) => EditProfileScreen(
userData: userData,
isOnboarding: true,
),
builder: (context) =>
EditProfileScreen(userData: userData, isOnboarding: true),
),
);
} else {
@ -365,10 +363,8 @@ class _SignInPageState extends State<SignInPage> {
if (userData['activated'] == 0) {
Navigator.of(context).pushReplacement(
MaterialPageRoute(
builder: (context) => EditProfileScreen(
userData: userData,
isOnboarding: true,
),
builder: (context) =>
EditProfileScreen(userData: userData, isOnboarding: true),
),
);
} else {
@ -518,7 +514,9 @@ class _SignInPageState extends State<SignInPage> {
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: BorderSide(color: Color(0xFF6A4C93)),
borderSide: BorderSide(
color: Color(0xFF6A4C93),
),
),
),
validator: (value) {
@ -558,7 +556,9 @@ class _SignInPageState extends State<SignInPage> {
),
focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12),
borderSide: BorderSide(color: Color(0xFF6A4C93)),
borderSide: BorderSide(
color: Color(0xFF6A4C93),
),
),
),
validator: (value) {

View File

@ -81,7 +81,21 @@ class _HomeScreenState extends State<HomeScreen> {
canPop: false, // Prevent going back to authentication screens
child: Scaffold(
body: _pages[_currentIndex],
bottomNavigationBar: BottomNavigationBar(
bottomNavigationBar: Container(
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [
BoxShadow(
color: Colors.black12,
blurRadius: 4,
offset: Offset(0, -2),
),
],
),
child: SafeArea(
child: Container(
height: 80,
child: BottomNavigationBar(
currentIndex: _currentIndex,
onTap: (index) {
setState(() {
@ -91,6 +105,8 @@ class _HomeScreenState extends State<HomeScreen> {
type: BottomNavigationBarType.fixed,
selectedItemColor: Color(0xFF6A4C93),
unselectedItemColor: Colors.grey,
backgroundColor: Colors.transparent,
elevation: 0,
items: [
BottomNavigationBarItem(icon: Icon(Icons.home), label: 'Feed'),
BottomNavigationBarItem(
@ -101,6 +117,9 @@ class _HomeScreenState extends State<HomeScreen> {
],
),
),
),
),
),
);
}
}

View File

@ -200,6 +200,7 @@ class _ProfilePageState extends State<ProfilePage> {
backgroundColor: Colors.white,
foregroundColor: Color(0xFF6A4C93),
elevation: 0,
centerTitle: true,
actions: [
if (userData != null)
IconButton(