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 'dart:async'; | |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
enum ButtonState { idle, loading, success, fail } | |
class ProgressButton extends StatefulWidget { | |
final Map<ButtonState, Widget> stateWidgets; | |
final Map<ButtonState, Color> stateColors; | |
final Function onPressed; |
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 'dart:async'; | |
import 'dart:math'; | |
import 'package:flutter/material.dart'; | |
enum ButtonState { idle, loading, success, fail } | |
class ProgressButton extends StatefulWidget { | |
final Map<ButtonState, Widget> stateWidgets; | |
final Map<ButtonState, Color> stateColors; | |
final Function onPressed; |
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
{ | |
"data": [ | |
{ | |
"id": 100, | |
"first_name": "Doğan", | |
"email": "gmacsporran2r@google.co.jp", | |
"avatar": "https://robohash.org/molestiasitaqueneque.bmp?size=50x50&set=set1", | |
"skills": "Stand", | |
"location": "İzmir", | |
"non_govn": "GENÇTUR" |
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
{ | |
"data": [ | |
{ | |
"id": 1, | |
"first_name": "Berhan", | |
"last_name": "Becermen", | |
"email": "rchalice0@xinhuanet.com", | |
"avatar": "https://robohash.org/dolorumsitet.png?size=50x50&set=set1", | |
"skills": "Proje Yazma", | |
"location": "Amasya", |
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
{ | |
"data": [ | |
{ | |
"id": 1, | |
"first_name": "Baron", | |
"last_name": "Greystock", | |
"email": "bgreystock0@paypal.com", | |
"gender": "Male", | |
"location": "Gradačac", | |
"skills": "Microbiology" |
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
[{"id":1,"first_name":"Baron","last_name":"Greystock","email":"bgreystock0@paypal.com","gender":"Male","location":"Gradačac","skills":"Microbiology"}, | |
{"id":2,"first_name":"Arie","last_name":"Kestin","email":"akestin1@nhs.uk","gender":"Male","location":"Khagrachhari","skills":"Google Earth"}, | |
{"id":3,"first_name":"Marie","last_name":"Bullman","email":"mbullman2@sphinn.com","gender":"Female","location":"Balangiga","skills":"Quality Auditing"}, | |
{"id":4,"first_name":"Eadmund","last_name":"Harrisson","email":"eharrisson3@ocn.ne.jp","gender":"Male","location":"Okrouhlice","skills":"Business Aviation"}, | |
{"id":5,"first_name":"Ardenia","last_name":"Kliesl","email":"akliesl4@nih.gov","gender":"Female","location":"Esperanza","skills":"JMS"}, | |
{"id":6,"first_name":"Hadlee","last_name":"Westlake","email":"hwestlake5@thetimes.co.uk","gender":"Male","location":"Arjawinangun","skills":"Squid"}, | |
{"id":7,"first_name":"Ida","last_name":"Mamwell","email":"imamwell6@nifty.com","gender":"Female","location":"Rolante","skills":"CBM" |
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
{ | |
"data": [ | |
{ | |
"id": "1", | |
"name": "Tiger Nixon", | |
"position": "System Architect", | |
"salary": "$320,800", | |
"start_date": "2011/04/25", | |
"office": "Edinburgh", | |
"extn": "5421" |
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
[ | |
[ | |
"Stirling", | |
"Shorrock", | |
"sshorrock0@t-online.de", | |
"Male", | |
"https://robohash.org/dolorquibusdamerror.jpg?size=50x50&set=set1", | |
"Wuyao", | |
"Rational XDE" | |
], |
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
[{"first_name":"Stirling","last_name":"Shorrock","email":"sshorrock0@t-online.de","gender":"Male","avatar":"https://robohash.org/dolorquibusdamerror.jpg?size=50x50&set=set1","skills":"Rational XDE","city":"Wuyao"}, | |
{"first_name":"Zachary","last_name":"De Biasio","email":"zdebiasio1@ebay.com","gender":"Male","avatar":"https://robohash.org/molestiaeeumdelectus.jpg?size=50x50&set=set1","skills":"FFP","city":"Tawa"}, | |
{"first_name":"Rebekah","last_name":"D'orsay","email":"rdorsay2@discovery.com","gender":"Female","avatar":"https://robohash.org/inciduntexcepturialiquid.jpg?size=50x50&set=set1","skills":"Mysticism","city":"Palopo"}, | |
{"first_name":"Daren","last_name":"Habard","email":"dhabard3@altervista.org","gender":"Male","avatar":"https://robohash.org/sintdeleniticum.bmp?size=50x50&set=set1","skills":"HVAC","city":"Hastings"}, | |
{"first_name":"Dottie","last_name":"Corse","email":"dcorse4@yelp.com","gender":"Female","avatar":"https://robohash.org/accusantiumremofficiis.jpg?size=50x50&set=set1","skills":"Red Hat Linu |
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
package com.taxi724.taximeterv2.navigation; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.content.SharedPreferences; | |
import android.preference.PreferenceManager; | |
import com.google.gson.GsonBuilder; | |
import com.mapbox.api.directions.v5.DirectionsAdapterFactory; | |
import com.mapbox.services.android.navigation.ui.v5.NavigationActivity; |
NewerOlder