Skip to content

Instantly share code, notes, and snippets.

void main() {
var list1 = ['I', '💙', 'Flutter'];
final list2 = list1;
list2[2] = 'Dart';
// const list3 = list1;
}
class User {
@minikin
minikin / one.dart
Created July 18, 2023 08:34
tagged blog on medium
class User{
final String id;
final String name;
final String email;
final String? subscriptionId;
const User(
this.subscriptionId, {
required this.id,
required this.name,
@minikin
minikin / RelativeSizeLayout.swift
Created June 7, 2023 10:11 — forked from ole/RelativeSizeLayout.swift
A SwiftUI layout and modifier for working with relative sizes ("50 % of your container"). https://oleb.net/2023/swiftui-relative-size/
import SwiftUI
extension View {
/// Proposes a percentage of its received proposed size to `self`.
///
/// This modifier multiplies the proposed size it receives from its parent
/// with the given factors for width and height.
///
/// If the parent proposes `nil` or `.infinity` to us in any dimension,
/// we’ll forward these values to our child view unchanged.
@minikin
minikin / main.dart
Created April 4, 2023 14:09
rustic-flora-0914
import 'package:flutter/material.dart';
import 'dart:math';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@minikin
minikin / delete-likes-from-twitter.md
Created March 28, 2022 09:27 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@minikin
minikin / soundcloud_audio_player_for_flutter.md
Created April 28, 2021 08:26
SoundCloud Audio Player for Flutter

SoundCloud Audio Player for Flutter

Abstract

There are a lot of blog posts on medium and videos on youtube about how to create commonly used widgets in Flutter. In this talk, we'll dive into how to create non-trivial widgets like SoundCloud audio player from the ground up.

You’ll learn:

  • How to build SoundCloud audio player style widget in Flutter.
  • How to playback audio files in Flutter apps.
@minikin
minikin / bio.md
Last active April 20, 2021 10:59
My Bio

Sasha Prokhorenko's Bio

Sasha Prokhorenko has more than a decade of experience in software engineering and in particular more than eight years in the mobile ecosystem.

He's been working on very different products, different markets, and various technologies.

For high-profile clients like PepsiCo, Philip Morris International, Vorwerk, and start-ups on different stages.

He developed, led, architect, and distributed through different channels more than twenty mobile apps and games. Delivered numerous IoT projects, web apps, and services.

import 'dart:convert';
import 'dart:io';
import 'dart:math' as math;
import 'dart:ui';
import 'package:async/async.dart';
import 'package:auto_size_text/auto_size_text.dart';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
@minikin
minikin / clean_code.md
Created December 26, 2020 17:02 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules