-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spinkit_fixed, minor UI, architecture changes
- Loading branch information
1 parent
e36f8db
commit d922c03
Showing
10 changed files
with
316 additions
and
91 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
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,57 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class BottomBar extends StatelessWidget { | ||
final int currentIndex; | ||
final Function(int) onTabTapped; | ||
|
||
const BottomBar( | ||
{Key? key, required this.currentIndex, required this.onTabTapped}) | ||
: super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return BottomNavigationBar( | ||
type: BottomNavigationBarType | ||
.fixed, // Ensure the labels are always displayed | ||
backgroundColor: Color.fromARGB(255, 34, 30, 30), | ||
unselectedItemColor: Colors.blueGrey, | ||
selectedItemColor: Colors.white, | ||
currentIndex: currentIndex, | ||
onTap: onTabTapped, | ||
items: const [ | ||
BottomNavigationBarItem( | ||
icon: Padding( | ||
padding: EdgeInsets.only(top: 10.0), | ||
child: Icon(Icons.trending_up), | ||
), | ||
label: 'Trendy', | ||
), | ||
BottomNavigationBarItem( | ||
icon: Padding( | ||
padding: EdgeInsets.only(top: 10.0), | ||
child: Icon(Icons.calendar_month_outlined), | ||
), | ||
label: 'Events', | ||
), | ||
BottomNavigationBarItem( | ||
icon: Padding( | ||
padding: EdgeInsets.only(top: 10.0), | ||
child: Icon(Icons.school), | ||
), | ||
label: 'Department', | ||
), | ||
BottomNavigationBarItem( | ||
icon: Padding( | ||
padding: EdgeInsets.only(top: 10.0), | ||
child: Icon(Icons.bookmark_outline), | ||
), | ||
label: 'Bookmarks', | ||
), | ||
], | ||
); | ||
} | ||
} | ||
|
||
|
||
|
||
// Color.fromARGB(255, 34, 30, 30), |
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
Oops, something went wrong.