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
import 'package:flutter/material.dart'; | |
List<AnimationCurve> curveOptions = [ | |
AnimationCurve(Curves.linear, "linear", "A linear animation curve."), | |
AnimationCurve( | |
Curves.decelerate, | |
"decelerate", | |
"A curve where the rate of change starts out quickly and then decelerates. " | |
"Upside-down `f(t) = t²` parabola."), | |
AnimationCurve( |
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
class FireAuthService extends BaseAuthService { | |
final Auth _firebaseAuth = fb.auth(); | |
//Get currently logged-in user | |
@override | |
Future<User> currentUser() async { | |
return await _firebaseAuth.currentUser; | |
} | |
//Sign-in using email and password, notifies all subscribers. |
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
functions ptyagi$ firebase serve --only=functions --debug | |
[2019-07-03T03:28:29.398Z] ---------------------------------------------------------------------- | |
[2019-07-03T03:28:29.401Z] Command: /usr/local/bin/node /usr/local/bin/firebase serve --only=functions --debug | |
[2019-07-03T03:28:29.401Z] CLI Version: 7.0.0 | |
[2019-07-03T03:28:29.402Z] Platform: darwin | |
[2019-07-03T03:28:29.402Z] Node Version: v10.16.0 | |
[2019-07-03T03:28:29.402Z] Time: Tue Jul 02 2019 20:28:29 GMT-0700 (Pacific Daylight Time) | |
[2019-07-03T03:28:29.403Z] ---------------------------------------------------------------------- |
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
//entrance into app | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
... |
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
class Header { | |
... | |
//Builds navigation links at the right top of landing page | |
Widget buildHeaderLinks(BuildContext context) { | |
if (!ResponsiveWidget.isSmallScreen(context)) | |
return Row( | |
mainAxisAlignment: MainAxisAlignment.spaceAround, | |
children: getLinksListing()..add(buildLoginButton()), | |
); | |
else |
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
class SmallScreen extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return SingleChildScrollView( | |
child: Padding( | |
padding: EdgeInsets.all(40), | |
child: Column( | |
crossAxisAlignment: CrossAxisAlignment.start, | |
children: <Widget>[ | |
Text( |
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
class ResponsiveWidget { | |
... | |
final Widget largeScreen; | |
final Widget mediumScreen; | |
final Widget smallScreen; | |
const ResponsiveWidget( | |
{Key key, this.largeScreen, this.mediumScreen, this.smallScreen}) | |
: super(key: key); |
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
class EmailBox extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Padding( | |
padding: EdgeInsets.only(left: 4.0, right: 74, top: 10, bottom: 40), | |
child: Container( | |
height: 60, | |
decoration: BoxDecoration( | |
color: MyColors.white1, | |
borderRadius: BorderRadius.circular(20), |
NewerOlder