-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Finished top navigation bar and added fonts * Fixed typo * Podfile Update * Updated Cocoapods and fixed dependencies * Name change and new color palette * Fixed path causing build to fail
- Loading branch information
Showing
11 changed files
with
199 additions
and
29 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
Binary file not shown.
Binary file not shown.
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,20 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class ColorPalette { | ||
static const MaterialColor BigRed = const MaterialColor( | ||
0xffed5656, // 0% comes in here, this will be color picked if no shade is selected when defining a Color property which doesn’t require a swatch. | ||
const <int, Color>{ | ||
//temporarily have the same color for all gradients | ||
50: const Color(0xffed5656), //10% | ||
100: const Color(0xffed5656), //20% | ||
200: const Color(0xffed5656), //30% | ||
300: const Color(0xffed5656), //40% | ||
400: const Color(0xffed5656), //50% | ||
500: const Color(0xffed5656), //60% | ||
600: const Color(0xffed5656), //70% | ||
700: const Color(0xffed5656), //80% | ||
800: const Color(0xffed5656), //90% | ||
900: const Color(0xffed5656), //100% | ||
}, | ||
); | ||
} // you can define define int 500 as the default shade and add your lighter tints above and darker tints below. |
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,59 @@ | ||
import 'package:flutter/src/widgets/framework.dart'; | ||
import 'package:flutter/src/widgets/placeholder.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:game/gameplay/gameplay_page.dart'; | ||
import 'package:game/journeys/journeys_page.dart'; | ||
import 'package:google_fonts/google_fonts.dart'; | ||
|
||
class HomeNavBar extends StatefulWidget { | ||
const HomeNavBar({super.key}); | ||
|
||
@override | ||
State<HomeNavBar> createState() => _HomeNavbarState(); | ||
} | ||
|
||
/// AnimationControllers can be created with `vsync: this` because of TickerProviderStateMixin. | ||
class _HomeNavbarState extends State<HomeNavBar> with TickerProviderStateMixin { | ||
late TabController _tabController; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
_tabController = TabController(length: 2, vsync: this); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
appBar: new PreferredSize( | ||
preferredSize: const Size.fromHeight(50.0), | ||
child: AppBar( | ||
backgroundColor: Color(0xFFED5656), | ||
titleTextStyle: TextStyle(fontSize: 25, fontWeight: FontWeight.w500), | ||
bottom: TabBar( | ||
dividerColor: Color.fromARGB(255, 0, 0, 0), | ||
indicatorColor: Color(0xFFFFFFFF), | ||
controller: _tabController, | ||
tabs: const <Widget>[ | ||
Tab(text: 'Challenges'), | ||
Tab( | ||
text: 'Journeys', | ||
), | ||
], | ||
), | ||
), | ||
), | ||
body: TabBarView( | ||
controller: _tabController, | ||
children: const <Widget>[ | ||
Center( | ||
child: GameplayPage(), | ||
), | ||
Center( | ||
child: JourneysPage(), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} |
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