This file contains hidden or 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
// flutter:widgets/container.dart | |
// in Container | |
// ... | |
@override | |
Widget build(BuildContext context) { | |
Widget current = child; | |
if (decoration != null) { | |
current = DecoratedBox(...); |
This file contains hidden or 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 NeumorphicContainer extends StatelessWidget { | |
final Widget child; | |
NeumorphicContainer({Key key, this.child}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return Container( | |
child: child, | |
); |
This file contains hidden or 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 'package:flutter/material.dart'; | |
void main() => runApp(NeumorphicApp()); | |
class NeumorphicApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Neumorphic App', | |
theme: ThemeData( |
This file contains hidden or 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
const Twitter = require('twitter-lite'); | |
const { | |
CONSUMER_KEY, | |
CONSUMER_SECRET, | |
ACCESS_TOKEN_KEY, | |
ACCESS_TOKEN_SECRET, | |
} = process.env; | |
const client = new Twitter({ | |
subdomain: 'api', |
This file contains hidden or 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
npm search twitter lite | |
NAME | DESCRIPTION | AUTHOR | DATE | VERSION | KEYWORDS | |
bootstrap-lite | this… | =kaizhu | 2019-01-30 | 2019.1.… | | |
bootstrap3-lite | this… | =kaizhu | 2019-01-30 | 2019.1.… | | |
twitter-lite | Tiny, full-featured… | =peterpme | 2019-03-26 | 0.9.4 | twitter rest api twitter api node-twitter twitter oauth twitter rest twitter stream | |
twitter-rest-lite | Twitter's REST API… | =ghostbar | 2014-07-27 | 0.3.8 | twitter api rest | |
twitter-scroller | Scrape more tweets… | =eyqs | 2018-01-23 | 2.0.0 | twitter scrape scraper scraping web-scraper | |
ep_sociallinks | Social links for… | =0ip =framasky… | 2013-10-06 | 1.0.2 | twitter facebook sharethis social | |
ep_twitter_links | Adds twitter links… | =0ip =framasky… | 2012-06-16 | 0.0.3 | |
This file contains hidden or 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
praise = praiser.generate(); | |
twitter.post(praise); |
This file contains hidden or 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
particle: ParticleGenerator( | |
2000, | |
(i) => Aligned( | |
alignment: Randoms.alignment(), | |
child: MovingParticle( | |
from: Offset.zero, | |
to: Randoms.offsetFromSize(const Size(100, 100)), | |
child: Circle(), | |
), | |
), |
This file contains hidden or 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
// in OutlineButton.build > Particles | |
// ... | |
particle: Puff(), | |
// ... |
This file contains hidden or 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:math'; | |
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
void main() async { | |
runApp(MyApp()); | |
} | |
/// Represents some additional [Color]s to be used | |
/// across the application |
This file contains hidden or 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 Puff extends Particle with NestedParticle { | |
Particle child; | |
Puff() { | |
// Will generate 50 nested particles | |
this.child = ParticleGenerator( | |
50, | |
// Each of which would be positioned randomly | |
// within enclosing canvas | |
(i) => Aligned( |