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
/// GetX v3.24.0 minified version for dartpad and codepen.io | |
/// roipeker 2021. | |
/// | |
/// NOTES: | |
/// - place imports at the top of your gists. | |
/// - place the rest of the code at the end of it. | |
/// | |
import 'dart:developer' as developer; import 'dart:async'; import 'dart:collection'; import 'package:flutter/foundation.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/scheduler.dart'; import 'dart:math' as math; import 'dart:ui' as ui; import 'dart:typed_data'; import 'dart:convert'; | |
// ignore: avoid_web_libraries_in_flutter | |
import 'dart:html' as html; |
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:ui' as ui; | |
import 'dart:convert'; | |
import 'dart:typed_data'; | |
import 'dart:math' as math; | |
import 'dart:collection'; | |
import 'dart:developer' as dev; | |
import 'package:flutter/widgets.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/foundation.dart'; |
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 'package:flutter/material.dart'; | |
void main() { | |
runApp(MaterialApp( | |
home: TestPage(), | |
)); | |
} | |
class TestPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { |
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
/// roipeker 2021 | |
/// | |
/// video sample: https://media.giphy.com/media/qGGcEFHQMOvkijjrSb/source.mp4 | |
/// | |
/// Warning: ShaderMask is NOT supported on WEB. | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp( |
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
/// roipeker 2021 | |
/// live demo: | |
/// https://graphx-mountain-chart.surge.sh/ | |
/// | |
import 'package:flutter/material.dart'; | |
import 'package:graphx/graphx.dart'; | |
void main() { | |
runApp(MaterialApp( | |
title: 'GraphX Mountain Chart', |
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
/// roipeker 2021 | |
/// part of a bigger template. | |
import 'package:get/get.dart'; | |
import 'package:get_storage/get_storage.dart'; | |
import '../services.dart'; | |
class StorageService extends GetxService implements BaseService { |
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:math'; | |
void testMaskEmail() { | |
final emails = [ | |
'[email protected]', | |
// output: a****[email protected] | |
'[email protected]', | |
// output: a****[email protected] | |
'[email protected]', | |
// output: a****[email protected] |
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
extension MyGlowingExt on Widget { | |
Widget glowing({ | |
Color color = Colors.blue, | |
double duration = .5, | |
double startScale = 0, | |
double endScale = 1, | |
double endScaleInterval = 0.8, | |
double circleInterval = .2, | |
double replayDelay = .2, |
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
/// roipeker 2021 | |
/// just wrap ur app with this, to emit "global" events (and close the dropdown). | |
///return SceneBuilderWidget( | |
/// builder: () => SceneController(front: RootScene()), | |
/// child: MaterialApp( | |
/// home: Scaffold( | |
import 'package:flutter/material.dart'; | |
import 'package:graphx/graphx.dart'; |