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 moment = require('moment') | |
console.info(`${pm.environment.get("base_url")}`) | |
const getJWT = { | |
url: `${pm.environment.get("base_url")}/auth/login`, | |
method: 'POST', | |
header: { | |
'Content-Type': 'application/x-www-form-urlencoded', | |
}, |
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
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
/* Splash screen */ | |
.intro { | |
position: fixed; | |
z-index: 1; |
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
let intro = document.querySelector('.intro'); | |
let logo = document.querySelector('.logo-header'); | |
let logoSpan = document.querySelectorAll('.logo'); | |
window.addEventListener('load', () => { | |
setTimeout(() => { | |
logoSpan.forEach((span, idx) => { | |
setTimeout(() => { |
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 ScrollReview extends StatefulWidget { | |
const ScrollReview({super.key}); | |
@override | |
State<ScrollReview> createState() => _ScrollReviewState(); | |
} | |
class _ScrollReviewState extends State<ScrollReview> { | |
final List<GlobalObjectKey<FormState>> formKeyList = | |
List.generate(10, (index) => GlobalObjectKey<FormState>(index)); |
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'; | |
import 'package:reveal_on_scroll/reveal_on_scroll.dart'; | |
class SimpleWidget extends StatefulWidget { | |
const SimpleWidget({super.key}); | |
@override | |
State<SimpleWidget> createState() => _SimpleWidgetState(); | |
} |
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
void main() { | |
var buffer = StringBuffer(); | |
buffer.write('rexthedev'); | |
buffer.writeCharCode(46); | |
buffer.writeln('com'); | |
buffer.write('Tags: '); | |
buffer.writeAll({'Dart', 'Flutter', 'Zapp', 'Flame'}, ','); | |
print('Buffer length: ${buffer.length}'); |
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
/// Illustrating a simple asynchronous primitive using Timer | |
import 'dart:async'; | |
void main() async { | |
final sleep = await sleepMode(); | |
print(sleep); | |
} | |
Future<String> sleepMode() { | |
final Completer<String> completer = Completer<String>(); |
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:collection'; | |
/// Queue Most useful things, we will explore it later on | |
/// For now, you can play on all the method it providers | |
/// ```dart | |
/// add(E value) → void | |
/// Adds value at the end of the queue. | |
/// addAll(Iterable<E> iterable) → void | |
/// Adds all elements of iterable at the end of the queue. The length of the queue is extended by the length of iterable. | |
/// addFirst(E value) → void |
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'; | |
class WidgetOne extends StatefulWidget { | |
const WidgetOne({Key? key}) : super(key: key); | |
@override | |
_WidgetOneState createState() => _WidgetOneState(); | |
} | |
class _WidgetOneState extends State<WidgetOne> |
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'; | |
import 'package:hooks_riverpod/hooks_riverpod.dart'; | |
import 'package:testflutter/riverpodtest/river_pod_controller.dart'; | |
class FlutterRiverPodTest extends StatefulHookConsumerWidget { | |
const FlutterRiverPodTest({Key? key}) : super(key: key); | |
@override | |
ConsumerState<ConsumerStatefulWidget> createState() => | |
_FlutterRiverPodTestState(); |
NewerOlder