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 MonoTouch.MapKit; | |
using MonoTouch.CoreLocation; | |
using System.Drawing; | |
using MonoTouch.Foundation; | |
namespace BinaryQuest | |
{ | |
[Register("MKMapViewZoomLevel")] | |
public class MKMapViewZoomLevel : MKMapView |
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
MaterialColor createMaterialColor(Color color) { | |
List strengths = <double>[.05]; | |
Map swatch = <int, Color>{}; | |
final int r = color.red, g = color.green, b = color.blue; | |
for (int i = 1; i < 10; i++) { | |
strengths.add(0.1 * i); | |
} | |
strengths.forEach((strength) { | |
final double ds = 0.5 - strength; |
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
class GradientAppBar extends StatelessWidget { | |
final String title; | |
final double barHeight = 66.0; | |
GradientAppBar(this.title); | |
@override | |
Widget build(BuildContext context) { | |
final double statusBarHeight = MediaQuery.of(context).padding.top; |
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'; | |
import 'package:get/get.dart'; | |
import 'package:dio/dio.dart'; | |
void main() { | |
runApp(GetMaterialApp( | |
initialRoute: '/home', | |
getPages: [ | |
GetPage( | |
name: '/home', |