This file contains hidden or 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 android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.widget.Toast; | |
import com.google.android.gms.awareness.fence.FenceState; | |
public class GeofenceBroadcastReceiver extends BroadcastReceiver { |
This file contains hidden or 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() { | |
/// dynamic is a special type indicating it can be any type. | |
dynamic x = 'hal'; | |
x = 123; | |
print(x); | |
var a = 'hal'; | |
// a = 123; | |
print(x); | |
} |
This file contains hidden or 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:flutter_bloc/flutter_bloc.dart'; | |
import 'package:flutter_sample_api_bloc/bloc/user_bloc.dart'; | |
import 'package:flutter_sample_api_bloc/bloc/user_detail_bloc.dart'; | |
import 'package:flutter_sample_api_bloc/repository/sample_api_client.dart'; | |
import 'package:flutter_sample_api_bloc/repository/sample_api_repository.dart'; | |
import 'package:flutter_sample_api_bloc/widgets/userview.dart'; | |
import 'package:http/http.dart' as http; | |
void main() { |
This file contains hidden or 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:collection/collection.dart'; | |
import 'package:flutter/material.dart'; | |
class ShoppingCartInfo { | |
final List<int> productIds; | |
ShoppingCartInfo({this.productIds}); | |
} |
This file contains hidden or 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 MyApp extends StatefulWidget { | |
@override | |
State<StatefulWidget> createState() { | |
return _MyAppState(); | |
} | |
} | |
class _MyAppState extends State<MyApp> { | |
@override | |
Widget build(BuildContext context) { |
This file contains hidden or 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.libindev.kotlintemplates | |
fun main(){ | |
//if | |
val a=5 | |
val b=10 | |
var max=0 |
This file contains hidden or 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.libindev.kotlintemplates | |
fun main(){ | |
//if | |
val a=5 | |
val b=10 | |
var max=0 |
This file contains hidden or 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
Group group; | |
Actor actor; | |
// ... | |
group.addActor(actor); | |
// ... | |
// Remove target actor after animation has been finished |
This file contains hidden or 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 class AuthenticationInterceptor implements Interceptor { | |
private String authToken; | |
public AuthenticationInterceptor(String token) { | |
this.authToken = token; | |
} | |
@Override | |
public Response intercept(Chain chain) throws IOException { |