-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
123bba5
commit 9d85e5c
Showing
19 changed files
with
1,684 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
org.gradle.jvmargs=-Xmx1536M | ||
|
||
android.enableJetifier=true | ||
android.useAndroidX=true | ||
android.useAndroidX=true | ||
android.enableR8=true |
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,10 @@ | ||
#!/bin/sh | ||
# This is a generated file; do not edit or check into version control. | ||
export "FLUTTER_ROOT=G:\SW\Flutter\SDK\flutter" | ||
export "FLUTTER_APPLICATION_PATH=F:\Android Projects\fest_management" | ||
export "FLUTTER_TARGET=lib\main.dart" | ||
export "FLUTTER_BUILD_DIR=build" | ||
export "SYMROOT=${SOURCE_ROOT}/../build\ios" | ||
export "FLUTTER_FRAMEWORK_DIR=G:\SW\Flutter\SDK\flutter\bin\cache\artifacts\engine\ios" | ||
export "FLUTTER_BUILD_NAME=1.9.2" | ||
export "FLUTTER_BUILD_NUMBER=5" |
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 |
---|---|---|
@@ -1,67 +1,74 @@ | ||
import 'package:fest_management/page0.dart'; | ||
import 'package:fest_management/sports.dart'; | ||
import 'package:fest_management/technical.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'gaming.dart'; | ||
import 'mainstage.dart'; | ||
import 'offstage.dart'; | ||
import 'page1.dart'; | ||
|
||
class events extends StatefulWidget { | ||
@override | ||
_eventsState createState() => _eventsState(); | ||
} | ||
|
||
class _eventsState extends State<events> { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Container( | ||
decoration: BoxDecoration( | ||
image: DecorationImage( | ||
image: AssetImage("images/events.jpg"), | ||
fit: BoxFit.cover, | ||
|
||
final controller = PageController(initialPage: 0); | ||
|
||
final PageStorageBucket bucket = PageStorageBucket(); | ||
final List<Widget> pages = [ | ||
page0( | ||
key: PageStorageKey('Page1'), | ||
), | ||
page1( | ||
key: PageStorageKey('Page2'), | ||
), | ||
]; | ||
|
||
int _selectedIndex = 0; | ||
Widget _bottomNavigationBar(int selectedIndex) => BottomNavigationBar( | ||
onTap: (int index) => setState(() => _selectedIndex = index), | ||
currentIndex: selectedIndex, | ||
items: const <BottomNavigationBarItem>[ | ||
BottomNavigationBarItem( | ||
icon: Icon( | ||
Icons.home, | ||
color: Colors.black, | ||
), | ||
title: Text( | ||
"Events", | ||
style: TextStyle(color: Colors.black), | ||
), | ||
), | ||
child: Center( | ||
child: SafeArea( | ||
child: Container( | ||
width: MediaQuery.of(context).size.width / 1.05, | ||
height: MediaQuery.of(context).size.height / 1.05, | ||
child: Card( | ||
shape: RoundedRectangleBorder( | ||
borderRadius: BorderRadius.circular(30.0)), | ||
child: Center( | ||
child: SingleChildScrollView( | ||
child: Wrap( | ||
runAlignment: WrapAlignment.spaceEvenly, | ||
children: <Widget>[ | ||
Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: mainstage(), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: offstage(), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: technical(), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: gaming(), | ||
), | ||
Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: sports(), | ||
), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
), | ||
BottomNavigationBarItem( | ||
icon: Icon( | ||
Icons.search, | ||
color: Colors.black, | ||
), | ||
title: Text( | ||
"History", | ||
style: TextStyle(color: Colors.black), | ||
), | ||
), | ||
|
||
], | ||
); | ||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
bottomNavigationBar: _bottomNavigationBar(_selectedIndex), | ||
|
||
appBar: AppBar( | ||
backgroundColor: Color(0xff000000), | ||
title: Text("Fest Management"), | ||
centerTitle: true, | ||
), | ||
body: PageStorage( | ||
child: pages[_selectedIndex], | ||
bucket: bucket, | ||
), | ||
); | ||
} | ||
} |
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.