Skip to content

Instantly share code, notes, and snippets.

View rutvik110's full-sized avatar
🎵
Humming

Rutvik Tak rutvik110

🎵
Humming
View GitHub Profile
@rutvik110
rutvik110 / gist:58093ea9cbf7c100732822b6608cdd9e
Created October 6, 2021 13:49
Implicit Animation Example
class MyAnimatedFoo extends StatefulWidget {
const MyAnimatedFoo({Key? key}) : super(key: key);
@override
State<MyAnimatedFoo> createState() => _MyAnimatedFooState();
}
class _MyAnimatedFooState extends State<MyAnimatedFoo> {
double height = 100;
@rutvik110
rutvik110 / Build error while building cloud function
Last active July 17, 2021 03:22
I'm trying to set up the firebase functions interop for writing cloud functions in dart.But the build is failing as it throws the error that some dependencies don't support null safety.I've tried to run without null safety but issue remains.
[SEVERE] build_node_compilers:entrypoint on node/index.dart:
Dart2Js finished with:
packages/js/js.dart:20:15:
Error: Null safety features are disabled for this library.
final String? name;
^
packages/path/path.dart:100:4:
Error: Null safety features are disabled for this library.
Uri? _currentUriBase;
@rutvik110
rutvik110 / main.dart
Created April 19, 2021 18:23 — forked from rydmike/main.dart
A Flutter long press context menu. Wrap a child with LongPressPopupMenu and it pops up at press location with its PopupMenuItem:s
// BSD 3-Clause License
//
// Copyright (c) 2021, Mike Rydstrom (Rydmike)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.