This repository was archived by the owner on Feb 15, 2023. It is now read-only.
-
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.
Version 0.9.0 (preparing for initial release)
- Loading branch information
1 parent
5cd51f8
commit b9deaa3
Showing
11 changed files
with
332 additions
and
138 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 |
---|---|---|
@@ -1,34 +1,37 @@ | ||
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
// Allow people to opt into notifications from this tournament | ||
|
||
// Allow staff members to enter a password that will opt them into staff-only notifications | ||
|
||
// Class imports | ||
import "package:ezra_companion/classes/TournamentListItem.dart"; | ||
|
||
class Settings extends StatelessWidget { | ||
final Function handleResetButtonPress; | ||
|
||
const Settings({ | ||
Key key, | ||
this.handleResetButtonPress | ||
}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
children: <Widget>[ | ||
Text('This is the settings page'), | ||
RaisedButton( | ||
child: Text("reset"), | ||
onPressed: (() async { | ||
await handleResetButtonPress(); | ||
// alert to something... | ||
print('done'); | ||
}), | ||
final TextTheme textTheme = Theme.of(context).textTheme; | ||
|
||
return Center( | ||
child: Padding( | ||
padding: EdgeInsets.all(15), | ||
child: Column( | ||
children: <Widget>[ | ||
RichText( | ||
textAlign: TextAlign.center, | ||
text: TextSpan( | ||
text: "About", | ||
style: textTheme.headline | ||
) | ||
), | ||
Text('The Ezra Companion is the official app for Ezra, the premier Science Olympiad tournament management system.'), | ||
SizedBox(height: 30), | ||
Text('Use this app to instantly view important information about a tournament, see a map of the tournament if available, and receive push notifications from tournament organizers.'), | ||
SizedBox(height: 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
Oops, something went wrong.