-
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.
Merge pull request #32 from ShubhKanodia/main
Spinkit fixed, minor architecture, UI changes
- Loading branch information
Showing
10 changed files
with
330 additions
and
98 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.