feat: Navigation bar a bit higher for better rendering on IOS
This commit is contained in:
parent
325eec7c8f
commit
8295e5bf03
@ -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) {
|
||||
|
||||
@ -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> {
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@ -200,6 +200,7 @@ class _ProfilePageState extends State<ProfilePage> {
|
||||
backgroundColor: Colors.white,
|
||||
foregroundColor: Color(0xFF6A4C93),
|
||||
elevation: 0,
|
||||
centerTitle: true,
|
||||
actions: [
|
||||
if (userData != null)
|
||||
IconButton(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user