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
| name: cd | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| title: | |
| name: Validate PR title |
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'; | |
| class CustomAutoComplete<T extends Object> extends StatelessWidget { | |
| final Iterable<T> options; | |
| final Function(T) onSelected; | |
| final String Function(T)? displayStringForOption; | |
| final Widget Function(BuildContext, T)? optionsItemBuilder; | |
| final Iterable<T> Function(TextEditingValue)? optionsFilter; | |
| const CustomAutoComplete({ |
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
| apply plugin: 'com.android.application' | |
| apply plugin: 'kotlin-android' | |
| apply plugin: 'kotlin-android-extensions' | |
| android { | |
| compileSdkVersion 28 | |
| defaultConfig { | |
| applicationId "your.app.id" | |
| minSdkVersion 21 |
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 com.github.quentin7b.estimateit | |
| import android.os.Bundle | |
| import android.util.Log | |
| import android.view.Menu | |
| import androidx.appcompat.app.AppCompatActivity | |
| import androidx.core.view.MenuItemCompat | |
| import androidx.mediarouter.app.MediaRouteActionProvider | |
| import androidx.mediarouter.media.MediaControlIntent | |
| import androidx.mediarouter.media.MediaRouteSelector |
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
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.github.quentin7b.estimateit"> | |
| <application | |
| android:icon="@mipmap/ic_launcher" | |
| android:label="@string/app_name"> | |
| <meta-data | |
| android:name="com.google.android.gms.cast.framework.OPTIONS_PROVIDER_CLASS_NAME" | |
| android:value="com.github.quentin7b.estimateit.CastOptionsProvider" /> |
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 com.github.quentin7b.estimateit | |
| import android.content.Context | |
| import com.google.android.gms.cast.framework.CastOptions | |
| import com.google.android.gms.cast.framework.OptionsProvider | |
| class CastOptionsProvider : OptionsProvider { | |
| override fun getCastOptions(ctx: Context): CastOptions { | |
| return CastOptions | |
| .Builder() |
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
| apply plugin: 'com.android.application' | |
| apply plugin: 'kotlin-android' | |
| apply plugin: 'kotlin-android-extensions' | |
| android { | |
| compileSdkVersion 28 | |
| defaultConfig { | |
| applicationId "com.github.quentin7b.estimateit" |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Estimate It</title> | |
| <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> | |
| <style> | |
| body { | |
| background: white; | |
| color: black; |
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 TheActivity : AppCompatActivity() { | |
| private val theSharedViewModel by viewModel<TheSharedViewModel>() | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| // bla bla bla | |
| theSharedViewModel.getEvent().observe(this, Observer { | |
| Log.i("TheSharedEvent", "Event Triggered") | |
| }) | |
| } |
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
| // Root build.gradle | |
| allprojects { | |
| repositories { | |
| google() | |
| jcenter() | |
| maven { url 'https://jitpack.io' } | |
| } | |
| } | |
| // Module build.gradle |
NewerOlder