-
-
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.
Merge pull request #21 from melton-foundation/beta_fixes
Beta release fixes and features
- Loading branch information
Showing
19 changed files
with
277 additions
and
57 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,24 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'package:melton_app/api/userSearchService.dart'; | ||
|
||
import 'package:melton_app/util/text_util.dart'; | ||
|
||
class UserSearchedString extends StatelessWidget { | ||
final UserSearchService searchService; | ||
|
||
UserSearchedString({this.searchService}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return StreamBuilder( | ||
stream: searchService.searchedString, | ||
builder: (context, snapshot) { | ||
if (snapshot.data == null || snapshot.data.trim().length <= 2) { | ||
return Container(); | ||
} | ||
return WhiteSubtitleText(content: "Showing Fellows with '${snapshot.data}'"); | ||
}, | ||
); | ||
} | ||
} |
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,44 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'package:melton_app/util/url_launch_util.dart'; | ||
import 'package:melton_app/constants/constants.dart'; | ||
|
||
class ProfileLineItemSelectable extends StatelessWidget { | ||
final String label; | ||
final String content; | ||
|
||
ProfileLineItemSelectable({this.label, this.content}); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Padding( | ||
padding: const EdgeInsets.all(8.0), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.stretch, | ||
children: [ | ||
Divider(), | ||
Text(label, | ||
textAlign: TextAlign.left, | ||
style: TextStyle(letterSpacing: 2.0, | ||
color: Constants.meltonBlue, | ||
fontWeight: FontWeight.bold), | ||
), | ||
FlatButton( | ||
onPressed: () {launchTelOrMailtoUrl(content, label == "PHONE");}, | ||
child: SelectableText( | ||
content, | ||
textAlign: TextAlign.center, | ||
style: TextStyle( | ||
color: Constants.meltonRed, | ||
fontWeight: FontWeight.bold, | ||
fontSize: 18.0, | ||
), | ||
), | ||
), | ||
], | ||
), | ||
); | ||
} | ||
} | ||
|
||
|
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,16 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
import 'package:melton_app/util/text_util.dart'; | ||
|
||
class UnknownError extends StatelessWidget { | ||
@override | ||
Widget build(BuildContext context) { | ||
return Column( | ||
children: [ | ||
Image.asset("assets/errors/error_unknown.png"), | ||
WhiteTitleText(content: "OOPS! SOMETHING WENT WRONG"), | ||
WhiteSubtitleText(content: "Let us know if this error persists.") | ||
], | ||
); | ||
} | ||
} |
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.