Skip to content

Instantly share code, notes, and snippets.

@begomez
begomez / gist:be4a6dac7508333ff32a5ada334b3b7e
Created September 20, 2022 16:04
Flutter: testing a method channel
/*
import 'package:url_launcher/url_launcher.dart';
class AppStoreLauncherException implements Exception {
final String msg;
const AppStoreLauncherException(this.msg) : super();
}
class AppStoreLauncher {
const AppStoreLauncher() : super();
@begomez
begomez / gist:90a3e55344cb87da4a6798cb264c0fef
Created August 11, 2020 16:11
Stateless widget lifecycle
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
MyApp() : super() {
@begomez
begomez / gist:18abb932ff7156e39a0826dd68870077
Created August 11, 2020 16:10
Stateful widget lifecycle
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
static final String TAG = "MyApp.";
@begomez
begomez / ReflectionTest.kt
Last active July 30, 2020 14:13
Reflection in Kotlin
package com.bgomez.recipapp
import kotlin.reflect.*
import kotlin.reflect.full.findAnnotation
import kotlin.reflect.full.memberProperties
/**
* Custom annotation that can be applied on class props
*/