Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Olzhas Suleimen ykmnkmi

🏠
Working from home
View GitHub Profile
@ykmnkmi
ykmnkmi / parameter_kinds.dart
Created Feb 18, 2022 — forked from munificent/parameter_kinds.dart
Scrape script to look at what kinds of parameters are most common
View parameter_kinds.dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/dart/ast/ast.dart';
import 'package:scrape/scrape.dart';
void main(List<String> arguments) {
Scrape()
..addHistogram('Signatures')
..addHistogram('Parameters')
@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;