Skip to content

Instantly share code, notes, and snippets.

View pinkeshdarji's full-sized avatar
💭
Feedback please 👂

Pinkesh Darji pinkeshdarji

💭
Feedback please 👂
View GitHub Profile
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;
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;
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;
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;
import 'package:flutter/material.dart';
class Option4 extends StatefulWidget {
@override
_Option4State createState() => _Option4State();
}
class _Option4State extends State<Option4> with TickerProviderStateMixin {
double _ironManAlignment = 50;
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);
@pinkeshdarji
pinkeshdarji / rounded_model.dart
Created July 5, 2019 12:37
Customized Modal sheet
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.
import 'package:flutter/material.dart';
class DragabbleScrollableSheetDemo extends StatefulWidget {
@override
_DragabbleScrollableSheetDemoState createState() =>
_DragabbleScrollableSheetDemoState();
}
class _DragabbleScrollableSheetDemoState
extends State<DragabbleScrollableSheetDemo> {
import 'package:flutter/material.dart';
class DemoToggleButtons extends StatefulWidget {
@override
_DemoToggleButtonsState createState() => _DemoToggleButtonsState();
}
class _DemoToggleButtonsState extends State<DemoToggleButtons> {
List<bool> isSelected = [false, true, false];
FocusNode focusNodeButton1 = FocusNode();
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',