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
Container( | |
height: AppUtils.deviceHeight, | |
child: FlutterMap( | |
mapController: mapController, | |
options: MapOptions( | |
zoom: 10, minZoom: 2, plugins: [MarkerClusterPlugin()]), | |
layers: [ | |
TileLayerOptions( | |
maxZoom: 10, | |
keepBuffer: 4, |
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
// https://navoki.com | |
import 'package:http/http.dart' as http; | |
void main() { | |
getUserData().then((response) { | |
print('Response: $response'); | |
}).catchError((error) { | |
if (error is SocketException) | |
print('Show UI, Internet Not Available!'); | |
else if (error is TimeoutException) |
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
// https://navoki.com | |
import 'dart:async'; | |
import 'package:http/http.dart' as http; | |
void main() { | |
StreamSubscription<String> streamSubscription; | |
streamSubscription = getUserData().asStream().listen((value) { |
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
// https://navoki.com | |
import 'package:http/http.dart' as http; | |
void main() { | |
getUserData().then((response) { | |
print('User Registered: $response'); | |
}); | |
} |
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
// https://navoki.com | |
import 'package:http/http.dart' as http; | |
void main() { | |
getUserData().then((response) { | |
print('Response: $response'); | |
}); | |
} | |
Future<String> getUserData()async { |
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
// https://navoki.com | |
main() { | |
print("Message 1"); | |
getSum().then((value){ | |
print("Sum: $value"); | |
print("Message 2"); | |
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
// https://navoki.com | |
main() { | |
print("Message 1"); | |
getSum().then((value){ | |
print("Sum: $value"); | |
print("Message 2"); | |
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
// https://navoki.com | |
main() { | |
print("Message 1"); | |
getSum().then((value){ | |
print("Sum: $value"); | |
print("Message 2"); | |
NewerOlder