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:get/get.dart'; | |
import 'package:flutter/material.dart'; | |
class OverLayLoader { | |
OverLayLoader._privateConstructor(); | |
static final OverLayLoader find = OverLayLoader._privateConstructor(); | |
Route _dialogRoute; |
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 React, { useState, useCallback, useEffect } from "react"; | |
export default function App() { | |
const [state, setState] = useClassState({ | |
d1: 0, | |
d2: 0, | |
d3: 0, | |
multiple: 0 | |
}); |
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
String validator(String text) { | |
if (widget.validator == null) return null; | |
String error = widget.validator(text); | |
InputStatus inst; | |
if (error == null) | |
inst = InputStatus.valid; | |
else | |
inst = InputStatus.invalid; | |
if (inst != inputStatus) { |
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
final double animVal = shouldAnimate ? 0 : -50; | |
return AnimatedPositioned( | |
duration: Duration(milliseconds: 500), | |
right: widget.suffix ? animVal : null, | |
top: 0, | |
left: widget.suffix ? null : animVal, | |
bottom: 0, | |
curve: curve, | |
child: Container( | |
width: 50, |