Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Feedback please 👂

Pinkesh Darji pinkeshdarji

💭
Feedback please 👂
View GitHub Profile
View MainActivity.java
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;
View option1.dart
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;
View option2.dart
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;
View option3.dart
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;
View option4.dart
import 'package:flutter/material.dart';
class Option4 extends StatefulWidget {
@override
_Option4State createState() => _Option4State();
}
class _Option4State extends State<Option4> with TickerProviderStateMixin {
double _ironManAlignment = 50;
View option5.dart
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);
View rounded_model.dart
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.
View draggable_scrollable_sheet.dart
import 'package:flutter/material.dart';
class DragabbleScrollableSheetDemo extends StatefulWidget {
@override
_DragabbleScrollableSheetDemoState createState() =>
_DragabbleScrollableSheetDemoState();
}
class _DragabbleScrollableSheetDemoState
extends State<DragabbleScrollableSheetDemo> {
View demo_toggle_buttons.dart
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();
View main.dart
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',
You can’t perform that action at this time.