pubspec.yaml
pubspec.yaml
import 'dart:math'; | |
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { |
import 'package:flutter/material.dart'; | |
import 'package:rxdart/rxdart.dart'; | |
// Global application configuration and navigation | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) => MaterialApp(home: Home()); |
// Example of using parsed command to generate flutter code | |
var result = List<Code>(); | |
final SvgPathStringSource parser = new SvgPathStringSource(svg); | |
final SvgPathNormalizer normalizer = new SvgPathNormalizer(); | |
var segments = parser.parseSegments(); | |
for (PathSegmentData seg in segments) { | |
result.addAll(normalizer.emitSegment(seg).map((c) => Code(_generateCommand(c).toString() + ";"))); | |
} | |
namespace Microsoft.Caboodle | |
{ | |
public interface IBattery | |
{ | |
void StartBatteryListeners(); | |
void StopBatteryListeners(); | |
double ChargeLevel { get; } |
import 'dart:math' as math; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/src/rendering/sliver.dart'; | |
import 'package:flutter/src/rendering/sliver_grid.dart'; | |
class _CoordinateOffset { | |
final double main, cross; | |
_CoordinateOffset(this.main, this.cross); | |
} |
namespace SnapCollection | |
{ | |
using UIKit; | |
using CoreGraphics; | |
public class SnapLayout : UICollectionViewFlowLayout | |
{ | |
public SnapLayout() | |
{ | |
this.ItemSize = new CGSize(300, 250); |
namespace Utils | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
/// <summary> | |
/// Weak event handlers to avoid keeping strong reference to subscriber of an event. | |
/// </summary> | |
public static class WeakEventHandlers |
## Example call : & .\FormatTemplate.ps1 "test.txt" "out.txt" "1=TEST" , "other=128" ,"things=ok" , "unfound=o" | |
param | |
( | |
[string]$gfileIn, | |
[string]$gfileOut, | |
[string[]]$gvalues | |
) | |
## Replaces all mustache like occurences ("{{ key }}") in $fileIn content, with $values corresponding values and saves |
namespace App1 | |
{ | |
using System; | |
using System.Linq; | |
using Windows.UI.Xaml.Controls; | |
using System.Reflection; | |
using Windows.UI.Xaml; | |
using System.Collections.Generic; | |
public static class UserControlExtensions |