Skip to content

Instantly share code, notes, and snippets.

View sroddy's full-sized avatar

Stefano Rodriguez sroddy

View GitHub Profile
@sroddy
sroddy / SimpleEncryptionPlugin.kt
Last active December 26, 2018 10:38
Flutter Simple Cryptor
package com.bendingspoons.simpleencryption
import com.tozny.crypto.android.AesCbcWithIntegrity.*
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.PluginRegistry.Registrar
class SimpleEncryptionPlugin() : MethodCallHandler {
@sroddy
sroddy / main.dart
Last active March 20, 2019 08:19
Flutter iOS Orientation Issues
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(