This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final words = ['a', 'dog', 'apples', 'supercalifragilisticexpialidocious']; | |
final lengths = words.map((word) => getWordLength(word)); | |
print("Long words: ${lengths.where((length) => length == WordLength.long).length}"); | |
print("Medium words: ${lengths.where((length) => length == WordLength.medium).length}"); | |
print("Short words: ${lengths.where((length) => length == WordLength.short).length}"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class TextViewHtmlExtention | |
{ | |
public static void SetHtml(this TextView textView, string html) | |
{ | |
textView.SetText(Html.FromHtml(html), TextView.BufferType.Spannable); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using Foundation; | |
using System.Runtime.InteropServices; | |
using ObjCRuntime; | |
namespace Watchdog | |
{ | |
public static class MainThreadWatchdog | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if LAUNCHIMAGE | |
private void SayCheeseForLaunchImage() | |
{ | |
UIView statusBar = (UIView) UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")); | |
UIView foregroundView = (UIView) statusBar.ValueForKey(new NSString("foregroundView")); | |
foregroundView.Hidden = true; | |
UILabel.Appearance.TextColor = new UIColor(0, 0, 0, 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using Cirrious.CrossCore.Exceptions; | |
using Cirrious.MvvmCross.Touch.Views; | |
using Cirrious.MvvmCross.Touch.Views.Presenters; | |
using MonoTouch.UIKit; | |
namespace ScriptTimer.iOS | |
{ | |
public class BufferTouchViewPresenter : MvxTouchViewPresenter |