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.content.Context | |
import com.sslwireless.alil.view.activity.payment.SSLCommerzCredentialResponseData | |
import com.sslwireless.sslcommerzlibrary.model.initializer.SSLCommerzInitialization | |
import com.sslwireless.sslcommerzlibrary.model.util.SSLCCurrencyType | |
import com.sslwireless.sslcommerzlibrary.model.util.SSLCSdkType | |
import com.sslwireless.sslcommerzlibrary.view.singleton.IntegrateSSLCommerz | |
import com.sslwireless.sslcommerzlibrary.viewmodel.listener.SSLCTransactionResponseListener | |
object MySSLCommerz { | |
fun initPayment( |
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:io'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:dio/dio.dart'; | |
import 'package:get/get_state_manager/src/rx_flutter/rx_disposable.dart'; | |
enum Method { POST, GET, PUT, DELETE, PATCH } | |
const BASE_URL = "https://hris.sslwireless.com/api/v1/"; |
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:clean_architecture/feature/home/controller/HomeController.dart'; | |
import 'package:get/get.dart'; | |
class HomeBinding extends Bindings { | |
@override | |
void dependencies() { | |
Get.lazyPut<HomeController>(() => HomeController()); | |
} | |
} |
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 HomeController extends BaseController with StateMixin, ScrollMixin { | |
final donors = <BloodDonors>[].obs; | |
var page = 1; | |
var isToLoadMore = true; | |
@override | |
onInit() { | |
super.onInit(); |
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:clean_architecture/core/network/rest_client.dart'; | |
import 'package:get/get.dart'; | |
class BaseController extends GetxController { | |
late RestClient restClient; | |
@override | |
onInit() { | |
super.onInit(); | |
restClient = Get.find(); |
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
# This is the Util function | |
```` | |
import android.app.Dialog | |
import android.content.Context | |
import android.graphics.Color | |
import android.graphics.drawable.ColorDrawable | |
import android.view.LayoutInflater | |
import androidx.databinding.DataBindingUtil | |
import androidx.recyclerview.widget.RecyclerView |
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
object P { | |
private val TAG = P::class.java.simpleName | |
private var prefs: SharedPreferences? = null | |
private var prefsEditor: SharedPreferences.Editor? = null | |
@SuppressLint("CommitPrefEdits") | |
private fun assurePrefNotNull(context: Context) { | |
if (prefs == null) |
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.animation.Animator | |
import android.animation.AnimatorListenerAdapter | |
import android.animation.ValueAnimator | |
import android.annotation.SuppressLint | |
import android.app.Activity | |
import android.app.AlertDialog | |
import android.app.Dialog | |
import android.content.Context | |
import android.content.Intent |
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
// For pre lollipop and post lollipop | |
import android.content.IntentFilter | |
import android.net.ConnectivityManager.CONNECTIVITY_ACTION | |
import android.util.Log | |
import com.firebase.jobdispatcher.JobParameters | |
import com.firebase.jobdispatcher.JobService | |
import com.osellers.fragments.HomeFragment | |
import com.osellers.receiver.ConnectivityReceiver |
NewerOlder