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'; | |
import 'dart:ui' as ui; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
const darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(const MyApp()); |
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:ffi'; | |
import 'package:ffi/ffi.dart'; | |
late final _crt = DynamicLibrary.open('msvcrt.dll'); | |
late final _setjmp = _crt.lookupFunction< | |
Int32 Function(Pointer<Uint8> env, Int32), | |
int Function(Pointer<Uint8>, int)>('setjmp'); | |
late final context = malloc<Pointer<Pointer<Void>>>(128); |
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'; | |
import 'package:flutter/material.dart'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(const MyApp()); | |
} |
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
const gulp = require('gulp'); | |
const iconfont = require('gulp-iconfont'); | |
const ext_replace = require('gulp-ext-replace'); | |
const consolidate = require('gulp-consolidate') | |
const runTimestamp = Math.round(Date.now() / 1000); | |
gulp.task('default', function () { | |
return gulp.src(['icons/*.svg']) | |
.pipe( | |
iconfont({ |
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:clock/clock.dart'; | |
/// Debounces an asynchronous operation, calling [onUpdate] after [add] is used | |
/// to update [value]. | |
/// | |
/// This class makes a few useful guarantees: | |
/// | |
/// 1. [onUpdate] will not be called more frequent than [minDuration]. |
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/gestures.dart'; | |
import 'package:flutter/material.dart'; | |
const darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(const MyApp()); | |
} | |
class AppScrollBehavior extends MaterialScrollBehavior { |
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'; | |
const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override |
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 'dart:convert'; | |
import 'dart:developer'; | |
import 'package:async/async.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:integration_test/integration_test.dart'; | |
/// A [WidgetsBinding] that serves as the client of ExtensionHost. | |
/// |
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
#!/usr/bin/pwsh | |
# ADB wifi tool, works on both Windows and Linux! | |
# | |
# 1. Finds the phone's IP address on wifi through an existing adb over usb connection | |
# 2. Puts the phone into TCP/IP mode | |
# 3. Instructs adb to connect to the phone using its IP address | |
$interface = adb shell ip addr show wlan0 | Out-String; | |
if (-not $?) { |
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(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({Key? key}) : super(key: key); | |
@override |