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:liquid_pull_to_refresh/liquid_pull_to_refresh.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
final GlobalKey<LiquidPullToRefreshState> _refreshIndicatorKey = | |
GlobalKey<LiquidPullToRefreshState>(); |
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 MahasiswaModel { | |
MahasiswaModel( | |
{this.nim, this.name, this.department, this.sks, this.address}); | |
String nim; | |
String name; | |
String department; | |
int sks; | |
String address; | |
} |
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 id.yukngoding.explore_mapbox.type.deviceLoc | |
import android.annotation.SuppressLint | |
import android.os.Bundle | |
import android.util.Log | |
import android.widget.Toast | |
import androidx.appcompat.app.AppCompatActivity | |
import com.mapbox.android.core.location.LocationEngine | |
import com.mapbox.android.core.location.LocationEngineProvider | |
import com.mapbox.android.core.location.LocationEngineRequest |
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 ${escapeKotlinIdentifiers(packageName)} | |
import android.content.Context | |
class ${mvpClass}Presenter(var view: ${mvpClass}Contract.View) | |
: ${mvpClass}Contract.Presenter { | |
override fun dropView() { | |
} |
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 ${escapeKotlinIdentifiers(packageName)} | |
interface ${mvpClass}Contract { | |
interface View{ | |
} | |
interface Presenter { | |
fun dropView() | |
} | |
} |
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 ${escapeKotlinIdentifiers(packageName)} | |
import android.content.Context | |
import android.content.Intent | |
import android.os.Bundle | |
import androidx.appcompat.app.AppCompatActivity | |
class ${mvpClass}Activity : AppCompatActivity(), ${mvpClass}Contract.View { | |
lateinit var presenter: ${mvpClass}Presenter |
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
<?xml version="1.0"?> | |
<#import "root://activities/common/kotlin_macros.ftl" as kt> | |
<recipe> | |
<#include "../common/recipe_manifest.xml.ftl" /> | |
<@kt.addAllKotlinDependencies /> | |
<#include "../common/recipe_simple.xml.ftl" /> | |
<open file="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" /> | |
<instantiate from="root/src/app_package/ViewClass.kt.ftl" |
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
<?xml version="1.0"?> | |
<globals> | |
<global id="hasNoActionBar" type="boolean" value="false" /> | |
<global id="simpleLayoutName" value="${layoutName}" /> | |
<global id="activityClass" value="${mvpClass}Activity" /> | |
<global id="excludeMenu" type="boolean" value="true" /> | |
<global id="generateActivityTitle" type="boolean" value="false" /> | |
<#include "../common/common_globals.xml.ftl" /> | |
</globals> |
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
<?xml version="1.0"?> | |
<template | |
format="5" | |
revision="1" | |
name="MVP Activity" | |
description="Creates a new activity with MVP Pattern"> | |
<category value="Activity" /> | |
<formfactor value="Mobile" /> |
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
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
import android.content.Context | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import kotlinx.android.extensions.LayoutContainer | |
import androidx.recyclerview.widget.RecyclerView | |
import kotlinx.android.synthetic.main.${LAYOUT_NAME}.* |
NewerOlder