Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Olzhas Suleimen ykmnkmi

🏠
Working from home
View GitHub Profile
@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;