Skip to content

Instantly share code, notes, and snippets.

Avatar

Stefan de Vogelaere stefandevo

View GitHub Profile
View Get Package - Failed Login Flow
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:shared_preferences/shared_preferences.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(DemoApp());
}
class DemoApp extends StatelessWidget {
@stefandevo
stefandevo / demo1.dart
Created Jun 16, 2020
Get Package - Login Flow
View demo1.dart
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:shared_preferences/shared_preferences.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
runApp(DemoApp());
}
class DemoApp extends StatelessWidget {
@stefandevo
stefandevo / AirPlayAudioPort.cmd
Created Jun 20, 2014
Change AirPlay Audio port on Airserver for resolving conflict with Xamarin.IOS Build Host
View AirPlayAudioPort.cmd
defaults write com.pratikkumar.airserver-mac com.airserver.raopPort 5010
@stefandevo
stefandevo / XamarinBuildIOSChecks.cmd
Created Jun 20, 2014
Xamarin.IOS Build Host troubleshooting
View XamarinBuildIOSChecks.cmd
## Just as sanity check, make sure that the OS sees that the Xamarin.iOS Build Host app is running
In Terminal.app:
$ ps -x | grep Xamarin\.iOS | grep Applications
2627 ?? 0:02.17 /Applications/Xamarin.iOS Build Host.app/Contents/MacOS/Xamarin.iOS Build Host
## Use `lsof` to check if the Xamarin.iOS Build Host app `launchd` item is listening on port 5000
In Terminal.app:
@stefandevo
stefandevo / AppDelegate.cs
Created Jun 18, 2014
Xamarin.Forms renderer hack called
View AppDelegate.cs
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
Forms.Init();
Renderers.Init();
_window = new UIWindow(UIScreen.MainScreen.Bounds);
_window.RootViewController = App.GetMainPage().CreateViewController();
_window.MakeKeyAndVisible();
@stefandevo
stefandevo / hack.cs
Created Jun 18, 2014
Xamarin.Forms assembly renderer hack
View hack.cs
using System;
namespace CaveBirdLabs.Forms.Platform.iOS
{
public static class Renderers
{
public static void Init ()
{
}
}
@stefandevo
stefandevo / BindingListBugTest.cs
Last active Aug 29, 2015
Missing PropertyDescriptor value on ListChangedEventArgs with BindingList in MonoTouch
View BindingListBugTest.cs
using System;
using NUnit.Framework;
using System.ComponentModel;
namespace BindingListBug
{
[TestFixture]
public class BindingListBugTest
{
string changedPropertyName = string.Empty;
You can’t perform that action at this time.