/*
Made by [egyJs.com](https://www.instagram.com/egyjs/);
*/
install it on your localhost and try it :
| /* Copyright 2019 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * https://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| package com.your.package | |
| import android.app.Dialog | |
| import android.os.Bundle | |
| import com.your.package.R | |
| import com.google.android.material.bottomsheet.BottomSheetDialog | |
| import com.google.android.material.bottomsheet.BottomSheetDialogFragment | |
| /** | |
| * BottomSheetDialog fragment that uses a custom |
/*
Made by [egyJs.com](https://www.instagram.com/egyjs/);
*/
install it on your localhost and try it :
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.util.ArrayMap; | |
| import java.io.IOException; | |
| import java.util.Collections; | |
| import java.util.Map; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; |
| import 'dart:math' as math; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/src/rendering/sliver.dart'; | |
| import 'package:flutter/src/rendering/sliver_grid.dart'; | |
| class _CoordinateOffset { | |
| final double main, cross; | |
| _CoordinateOffset(this.main, this.cross); | |
| } |
| //-------------------------------- | |
| // CHECK THE COMMENTS FOR UPDATES! | |
| //-------------------------------- | |
| /* | |
| * Copyright (C) 2017 Mitchell Skaggs, Keturah Gadson, Ethan Holtgrieve, Nathan Skelton, Pattonville School District | |
| * | |
| * This program is free software: you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation, either version 3 of the License, or |
| // compile "org.jetbrains.kotlinx:kotlinx-coroutines-android:0.16" | |
| // compile "android.arch.lifecycle:runtime:1.0.0-alpha3" | |
| // compile "android.arch.lifecycle:extensions:1.0.0-alpha3" | |
| // kapt "android.arch.lifecycle:compiler:1.0.0-alpha3" | |
| class AsyncLiveData<T> private constructor(private val exec: suspend () -> T) : LiveData<T>() { | |
| private var observer: Observer<T>? = null | |
| private var job: Job? = null |
| // From: http://stackoverflow.com/a/37816976 | |
| public class SnappyRecyclerView extends RecyclerView { | |
| // Use it with a horizontal LinearLayoutManager | |
| // Based on http://stackoverflow.com/a/29171652/4034572 | |
| public SnappyRecyclerView(Context context) { | |
| super(context); | |
| } |