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 / removeAllAnnotations()
Last active April 13, 2023 08:19
Remove all annotation from mapView [MapBox]
/// Remove all annotation from mapView (MapBox)
func removeAllAnnotations() {
guard let annotations = mapView.annotations else { return print("Annotations Error") }
if annotations.count != 0 {
for annotation in annotations {
mapView.removeAnnotation(annotation)
}
@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 / main.dart
Created September 30, 2020 13:11
Result Type Dart
void main() {
final item = {'1': 'Apple'};
final operationSuccessed = Result.success(item);
final operationFailed = Result.error(Failure('Cannot catch data'));
print(operationSuccessed.result);
print(operationFailed.error);
}
class Result<Success, Error extends Failure> {
@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.