Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Olzhas Suleimen ykmnkmi

🏠
Working from home
View GitHub Profile
@ykmnkmi
ykmnkmi / bubble_effect.dart
Created May 10, 2021 — forked from slightfoot/bubble_effect.dart
3D Style Bubble Magnifying Effect - by Simon Lightfoot and Wilson Wilson @wilsonowilson - 18/03/2021
View bubble_effect.dart
// MIT License
//
// Copyright (c) 2021 Simon Lightfoot
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@ykmnkmi
ykmnkmi / keyboard_observer.dart
Created Apr 2, 2021 — forked from PlugFox/keyboard_observer.dart
Dart Virtual Key Codes table and KeyboardObserver for win32 package
View keyboard_observer.dart
import 'dart:async';
import 'dart:ffi' show Uint8, Uint8Pointer;
import 'package:ffi/ffi.dart' show calloc; // , malloc
import 'package:win32/win32.dart'
show GetKeyboardState, GetKeyState; // , GetAsyncKeyState;
import 'virtual_key_codes.dart';
/// Key - Virtual Key codes
@ykmnkmi
ykmnkmi / main.dart
Created Oct 1, 2020
Flutter simple drawer
View main.dart
import 'dart:ui' as ui show window;
import 'package:flutter/material.dart' show Colors;
import 'package:flutter/widgets.dart';
void main() {
runApp(App());
}
class App extends StatelessWidget {
@ykmnkmi
ykmnkmi / main.dart
Created Aug 26, 2020
Flutter web tab switch and unfocus example
View main.dart
import 'dart:ui' as ui show window;
import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/widgets.dart';
void main() {
runApp(App());
}
@ykmnkmi
ykmnkmi / main.dart
Last active Jun 19, 2020
flutter transparent bg
View main.dart
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart' hide Draggable;
void main() {
runApp(App());
}
class App extends StatefulWidget {
const App({Key key}) : super(key: key);
@ykmnkmi
ykmnkmi / main.dart
Last active Sep 25, 2020
gl vertex math dart:ui
View main.dart
import 'dart:async';
import 'dart:math' as math;
import 'dart:typed_data';
import 'dart:ui';
import 'package:vector_math/vector_math.dart';
typedef Renderer = void Function(Canvas canvas, Rect paintBounds);
Renderer render;