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
package com.example.pinkesh.firebasephoneauthentication; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.support.design.widget.FloatingActionButton; | |
import android.support.v7.app.AppCompatActivity; | |
import android.support.v7.widget.Toolbar; | |
import android.util.Log; | |
import android.view.Menu; | |
import android.view.MenuItem; |
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'; | |
import 'dart:ui'; | |
class Option1 extends StatefulWidget { | |
@override | |
_Option1State createState() => _Option1State(); | |
} | |
class _Option1State extends State<Option1> with TickerProviderStateMixin { | |
Animation<double> animation; |
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'; | |
class Option2 extends StatefulWidget { | |
@override | |
_Option2State createState() => _Option2State(); | |
} | |
class _Option2State extends State<Option2> with TickerProviderStateMixin { | |
Animation<double> animation; | |
AnimationController animationController; |
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'; | |
class Option3 extends StatefulWidget { | |
@override | |
_Option3State createState() => _Option3State(); | |
} | |
class _Option3State extends State<Option3> with TickerProviderStateMixin { | |
Animation<Offset> animation; | |
AnimationController animationController; |
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'; | |
class Option4 extends StatefulWidget { | |
@override | |
_Option4State createState() => _Option4State(); | |
} | |
class _Option4State extends State<Option4> with TickerProviderStateMixin { | |
double _ironManAlignment = 50; |
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'; | |
class Option5 extends StatefulWidget { | |
@override | |
_Option5State createState() => _Option5State(); | |
} | |
class _Option5State extends State<Option5> with TickerProviderStateMixin { | |
AlignmentDirectional _ironManAlignment = AlignmentDirectional(0.0, 0.7); |
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 'dart:async'; | |
import 'package:flutter/material.dart'; | |
/// Below is the usage for this function, you'll only have to import this file | |
/// [radius] takes a double and will be the radius to the rounded corners of this modal | |
/// [color] will color the modal itself, the default being `Colors.white` | |
/// [builder] takes the content of the modal, if you're using [Column] | |
/// or a similar widget, remember to set `mainAxisSize: MainAxisSize.min` | |
/// so it will only take the needed space. |
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'; | |
class DragabbleScrollableSheetDemo extends StatefulWidget { | |
@override | |
_DragabbleScrollableSheetDemoState createState() => | |
_DragabbleScrollableSheetDemoState(); | |
} | |
class _DragabbleScrollableSheetDemoState | |
extends State<DragabbleScrollableSheetDemo> { |
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'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
// This widget is the root of your application. | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', |
OlderNewer