Skip to content

Instantly share code, notes, and snippets.

View proteye's full-sized avatar
🏠
Working from home

Ramil Zaynetdinov proteye

🏠
Working from home
View GitHub Profile
@proteye
proteye / inherited_model_sample.dart
Created August 28, 2024 16:40 — forked from PlugFox/inherited_model_sample.dart
SettingsScope with InheritedModel
/*
* https://gist.github.com/PlugFox/320d051c5a393f56f60c3cf080d6171a
* https://dartpad.dev/320d051c5a393f56f60c3cf080d6171a?null_safety=true
*/
import 'package:flutter/widgets.dart';
@immutable
class SettingsScope extends StatefulWidget {
final Widget child;
@proteye
proteye / rsa.dart
Created July 15, 2018 14:46 — forked from ziizii/rsa.dart
How to generate RSA private/public key pair in Dart with Pointy Castle
import 'dart:html';
import 'dart:math';
import 'dart:typed_data';
import "package:bignum/bignum.dart";
import "package:pointycastle/export.dart";
void main() {
var keyParams = new RSAKeyGeneratorParameters(new BigInteger("65537"), 2048, 5);