Skip to content

Instantly share code, notes, and snippets.

View rutvik110's full-sized avatar
🎵
Humming

Rutvik Tak rutvik110

🎵
Humming
View GitHub Profile
<script id="twitter-wjs" type="text/javascript" async defer src="//platform.twitter.com/widgets.js"></script>
function createMyTweet() {
var twtter = window.twttr;
twttr.widgets.createTweet(
'$tweetId',
document.getElementById('container'),
)
}
class TwitterEmbed extends StatefulWidget {
const TwitterEmbed({Key? key}) : super(key: key);
@override
State<TwitterEmbed> createState() => _TwitterEmbedState();
}
class _TwitterEmbedState extends State<TwitterEmbed> {
late bool isLoaded;
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
void main() {
uniform float u_time;
vec4 fragment(in vec2 uv,in vec2 fragCoord){
float l=u_time;
vec2 uv2,p=uv;
uv2=p;
p-=.5;
l=length(p);
uv2+=abs(sin(l*10.-u_time));
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/scheduler.dart';
class MyShader extends StatefulWidget {
const MyShader({Key? key}) : super(key: key);
@override
State<MyShader> createState() => _MyShaderState();
@rutvik110
rutvik110 / launch.json
Created June 13, 2022 13:52
launch.json cofigurations for nativeshell
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Flutter: Attach to Process",
"type": "dart",
"request": "attach",
Padding(
padding: EdgeInsets.all(verticlItemsPadding),
// 1.
child : Row(
mainAxisSize: MainAxisSize.min,
children: List.generate(items.length, (index) {
// 2.
return MouseRegion(
cursor: SystemMouseCursors.click,
onEnter: ((event) {
double getPropertyValue({
required int index,
required double baseValue,
required double maxValue,
required double nonHoveredMaxValue,
}) {
late final double propertyValue;
// 1.
if (hoveredIndex == null) {
Positioned(
height: baseItemHeight,
left: 0,
right: 0,
child: DecoratedBox(
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
gradient: const LinearGradient(colors: [
Colors.blueAccent,
Colors.greenAccent,