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:cartenz_djp/style/colors.dart'; | |
import 'package:cartenz_djp/widget/override/customTabs.dart' as Tabs; | |
import 'package:flutter/material.dart'; | |
class ExampleWidget extends StatefulWidget { | |
@override | |
State<StatefulWidget> createState() => ExampleState(); | |
} | |
class ExampleState extends State<ExampleWidget> { |
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:flutter/material.dart'; | |
import 'package:ikanas/style/Colors.dart'; | |
class ExampleActivity extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: ColorWhite, | |
resizeToAvoidBottomPadding: true, | |
body: BaseButton(onClickLogin), |
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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.ikhwankoto.cameraandcamerax"> | |
<uses-permission android:name="android.permission.CAMERA" /> | |
<application .. > | |
<activity .. /> | |
</application> | |
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
#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}.* |
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"?> | |
<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 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 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 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 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 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() { | |
} |
OlderNewer