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
<script id="twitter-wjs" type="text/javascript" async defer src="//platform.twitter.com/widgets.js"></script> |
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
function createMyTweet() { | |
var twtter = window.twttr; | |
twttr.widgets.createTweet( | |
'$tweetId', | |
document.getElementById('container'), | |
) | |
} |
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
class TwitterEmbed extends StatefulWidget { | |
const TwitterEmbed({Key? key}) : super(key: key); | |
@override | |
State<TwitterEmbed> createState() => _TwitterEmbedState(); | |
} | |
class _TwitterEmbedState extends State<TwitterEmbed> { | |
late bool isLoaded; |
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
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform vec2 u_resolution; | |
void main() { | |
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
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)); |
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'; | |
import 'package:flutter/scheduler.dart'; | |
class MyShader extends StatefulWidget { | |
const MyShader({Key? key}) : super(key: key); | |
@override | |
State<MyShader> createState() => _MyShaderState(); |
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
{ | |
// 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", |
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
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) { |
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
double getPropertyValue({ | |
required int index, | |
required double baseValue, | |
required double maxValue, | |
required double nonHoveredMaxValue, | |
}) { | |
late final double propertyValue; | |
// 1. | |
if (hoveredIndex == null) { |
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
Positioned( | |
height: baseItemHeight, | |
left: 0, | |
right: 0, | |
child: DecoratedBox( | |
decoration: BoxDecoration( | |
borderRadius: BorderRadius.circular(8), | |
gradient: const LinearGradient(colors: [ | |
Colors.blueAccent, | |
Colors.greenAccent, |