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:dio/dio.dart'; | |
import 'package:flutter_secure_storage/flutter_secure_storage.dart'; | |
class Api { | |
final Dio api = Dio(); | |
String? accessToken; | |
final _storage = const FlutterSecureStorage(); | |
Api() { |
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 android.app.Activity; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.net.Uri; | |
import android.util.Patterns; | |
import androidx.annotation.NonNull; | |
import androidx.annotation.Nullable; | |
import java.io.File; |
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 java.text.DecimalFormat; | |
import java.text.NumberFormat; | |
public class ExecutionTimeCalc { | |
private static final NumberFormat formatter = new DecimalFormat("#0.00"); | |
private static long startTime = 0; | |
public static void startTime(){ | |
startTime = System.currentTimeMillis(); | |
} |
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
/** | |
* Created by KishanDonga on 10/18/2017 | |
*/ | |
public interface IUnits { | |
String format(long size, String pattern); | |
long getUnitSize(); | |
} |
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 io.reactivex.disposables.CompositeDisposable; | |
import io.reactivex.disposables.Disposable; | |
public class RxDisposable { | |
private static final RxDisposable RX_DISPOSABLE = new RxDisposable(); | |
private CompositeDisposable compositeDisposable = new CompositeDisposable(); | |
public static void addDisposable(Disposable disposable) { | |
RX_DISPOSABLE.compositeDisposable.add(disposable); |
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 android.app.Activity; | |
import android.content.Context; | |
import android.content.IntentSender; | |
import android.location.LocationManager; | |
import android.util.Log; | |
import android.widget.Toast; | |
import com.google.android.gms.common.api.ApiException; | |
import com.google.android.gms.common.api.ResolvableApiException; | |
import com.google.android.gms.location.LocationRequest; |
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 android.os.Handler; | |
public class FrequentClickBlocker { | |
private boolean mIsBlockClick = true; | |
public void release() { | |
new Handler().postDelayed(() -> mIsBlockClick = true, 1000); | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<!-- Drop Shadow Stack --> | |
<item> | |
<shape> | |
<padding | |
android:bottom="1dp" | |
android:left="1dp" | |
android:right="1dp" |