Skip to content

Commit

Permalink
Fixed event main page
Browse files Browse the repository at this point in the history
Various fixes including:
- Adding description to the main event page
- Improved scanning
- Screenshots in the README
  • Loading branch information
TomCranitch committed May 7, 2018
1 parent 530b05e commit 9625d23
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 18 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Flutter Event App
This app provides event managers with the tools necessary to manage great events. It includes the ability to scan and distribute tickets, show attendee lists and manage a shared Spotify playlist.

## Screenshots
![List of events with titles and descriptions](/screenshots/event-list.png?raw=true "Event List")

## Built With
* Flutter
* Firebase Firestore, Firebase Auth, Firebase Analytics and Firesbase Messaging
* Flutter Barcode Scan package
* Flutter Barcode Scan package which is a wrapper for dm77/barcodescanner on android and mikebuss/MTBBarcodeScanner on iOS
6 changes: 3 additions & 3 deletions flutter_event_app_android.iml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<sourceFolder url="file://$MODULE_DIR$/android/app/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/android/gen" isTestSource="false" generated="true" />
</content>
<orderEntry type="jdk" jdkName="Android API 25 Platform" jdkType="Android SDK" />
<orderEntry type="jdk" jdkName="Android API 24 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Flutter for Android" level="project" />
<orderEntry type="library" exported="" name="Flutter for Android" level="project" />
</component>
</module>
</module>
1 change: 1 addition & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class MyApp extends StatelessWidget {
return new MaterialApp(
title: 'Event App',
home: new SignInPage(),
debugShowCheckedModeBanner: false,
);
}
}
20 changes: 9 additions & 11 deletions lib/pages/event_page_tabs/event_main_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ class EventMainTabPage extends StatefulWidget {
EventMainTabPage(this._eventId);
String _address;

bool _qrReady = false;
String _qrEntryCode = "null";

final String description = "Very Very Brief"; //"Lorem ipsum dolor amet butcher snackwave hexagon pabst wayfarers taxidermy flexitarian man bun. Mixtape post-ironic raclette, art party cliche fingerstache DIY mustache vaporware thundercats air plant chicharrones celiac hammock photo booth. Etsy disrupt you probably haven't heard of them mumblecore sriracha jianbing. Godard keytar lomo chartreuse deep v drinking vinegar actually la croix marfa wolf subway tile. Chia live-edge cold-pressed, kombucha offal godard disrupt VHS ethical cornhole tumblr post-ironic irony.";

}

class EventMainTabPageState extends State<EventMainTabPage> with SingleTickerProviderStateMixin {
bool fullScreenQR = false;
DocumentSnapshot eventDocumentSnapshot;
bool _qrReady = false;
String _qrEntryCode = "null";



@override
Expand Down Expand Up @@ -54,8 +52,8 @@ class EventMainTabPageState extends State<EventMainTabPage> with SingleTickerPro
FirebaseUser user = await FirebaseAuth.instance.currentUser();
Firestore.instance.document("events/" + widget._eventId + "/attendees/" + user.uid).snapshots.listen((DocumentSnapshot attendeeSnapshot) {
this.setState(() {
widget._qrEntryCode = attendeeSnapshot.data["EntryCode"];
widget._qrReady = true;
_qrEntryCode = attendeeSnapshot.data["EntryCode"];
_qrReady = true;
});
});

Expand Down Expand Up @@ -93,8 +91,8 @@ class EventMainTabPageState extends State<EventMainTabPage> with SingleTickerPro
onTap: () {
this.setState(() => fullScreenQR = !fullScreenQR);
},
child: widget._qrReady ? new QrImage(
data: widget._qrEntryCode,
child: _qrReady ? new QrImage(
data: _qrEntryCode,
version: 5, foregroundColor: Colors.green[900],
size: MediaQuery.of(context).size.width/2.5,
) :
Expand All @@ -105,7 +103,7 @@ class EventMainTabPageState extends State<EventMainTabPage> with SingleTickerPro
),
new Padding(
padding: const EdgeInsets.all(10.0),
child: new Text(widget.description, textAlign: TextAlign.justify,),
child: new Text(eventDocumentSnapshot.data["description"], textAlign: TextAlign.justify,),
),
],
),
Expand All @@ -116,7 +114,7 @@ class EventMainTabPageState extends State<EventMainTabPage> with SingleTickerPro
color: Colors.white.withOpacity(1.0),
alignment: Alignment.center,
child: new QrImage(
data: widget._qrEntryCode,
data: _qrEntryCode,
version: 5, foregroundColor: Colors.black,
size: MediaQuery.of(context).size.width,
padding: new EdgeInsets.all(30.0),
Expand Down
3 changes: 1 addition & 2 deletions lib/pages/scan_barcode_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ class ScanBarcodePageState extends State<ScanBarcodePage>{
});
}).catchError((Error error) {
this.setState(() {
scannedTickets.add(["Ticket Lookup Failed", "The user doesn't exist or cannot attend this event", TicketStatus.Unverified]);

this.setState(() => scannedTickets.add(["Ticket Lookup Failed", "The user doesn't exist or cannot attend this event", TicketStatus.Unverified]));
});
print(error);
});
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/event_list_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class EventCardController extends State<EventCard> {
new ListTile(
leading: const Icon(Icons.check, color: Colors.greenAccent,),
title: new Text(widget._name),
subtitle: new Text(widget._description),
subtitle: new Text(widget._description.length < 35 ? widget._description : widget._description.substring(0, 30) + "..."),
),
/*new ButtonTheme.bar( // make buttons use the appropriate styles for cards
child: new ButtonBar(
Expand Down
Binary file added screenshots/add-event-form-validation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/add-event-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/event-display-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/event-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/music-voting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/ticket-scanning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9625d23

Please sign in to comment.