Skip to content

Instantly share code, notes, and snippets.

Avatar

Chandrasekar Kuppusamy TakeoffAndroid

View GitHub Profile
View TextIconTabBarLineIndicatorVertical.dart
import 'package:flutter/material.dart';
class TextIconTabBarLineIndicatorVertical extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
TabBar(
View TextIconTabBarLineIndicatorHorizontal.dart
import 'package:flutter/material.dart';
class TextIconTabBarLineIndicatorHorizontal extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
TabBar(
View IconTabBarSolidIndicator.dart
import 'package:flutter/material.dart';
class IconTabBarSolidIndicator extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
TabBar(
View TextTabBarSolidIndicator.dart
import 'package:flutter/material.dart';
class TextTabBarSolidIndicator extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
TabBar(
View TextTabBarLineIndicator.dart
import 'package:flutter/material.dart';
class TextTabBarLineIndicator extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
TabBar(
View IconTabBarLineIndicator.dart
import 'package:flutter/material.dart';
class IconTabBarLineIndicator extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.end,
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
TabBar(
View buildconfigapikey.groovy
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt')
, 'proguard-rules.pro'
}
applicationVariants.all { variant ->
variant.buildConfigField "String", "GOOGLE_MAPS_API_KEY"
View manifestapikey.xml
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="${GOOGLE_MAPS_API_KEY}" />
View manifestplaceholdersapikey.groovy
defaultConfig {
defaultPublishConfig 'debug'
applicationId "YOUR_APPLICATION_ID"
minSdkVersion 19
targetSdkVersion 27
versionCode 1000
versionName '0.1.0'
manifestPlaceholders = [ GOOGLE_MAPS_API_KEY:getApiKey()]
}
@TakeoffAndroid
TakeoffAndroid / readkey.groovy
Last active Feb 9, 2018
build.gradle method to read secret key from secrets.properties
View readkey.groovy
def getApiKey(){
def Properties props = new Properties()
props.load(new FileInputStream(new File('secrets.properties')))
return props['GOOGLE_MAPS_API_KEY']
}
You can’t perform that action at this time.