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:flutter_login_manager/splash_screen.dart'; | |
| import 'package:flutter_login_manager/model/login_info.dart'; | |
| import 'package:flutter_login_manager/model/login.dart' as loginManager; | |
| import 'package:flutter_login_manager/home_screen.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatefulWidget { | |
| @override |
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
| List<Recipe> categoryListGenerator(iCategory) { | |
| List<Recipe> _categoryRecipe = recipes.where((recipe) { | |
| return recipe.category == iCategory; | |
| }).toList(); | |
| return _categoryRecipe; | |
| } | |
| List<Recipe> recipes = [ | |
| new Recipe( | |
| "Pesto Pastry", |
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
| new AlertDialog.Builder(MainActivity.this) | |
| .setTitle("Call Permission") | |
| .setMessage("Hi there! We can't call anyone without the call permission, could you please grant it?") | |
| .setPositiveButton("Yep", new DialogInterface.OnClickListener() { | |
| @Override | |
| public void onClick(DialogInterface dialogInterface, int i) { | |
| } | |
| }) | |
| .setNegativeButton("No thanks", new DialogInterface.OnClickListener() { |
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 `in`.cookytech.testapp | |
| import android.Manifest | |
| import android.Manifest.permission | |
| import android.content.pm.PackageManager | |
| import android.os.Build | |
| import android.os.Bundle | |
| import android.support.v7.app.AppCompatActivity | |
| import org.jetbrains.anko.* | |
| import org.jetbrains.anko.sdk25.coroutines.onClick |
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.example.raveesh.stormy.adapters | |
| import android.content.Context | |
| import android.view.View | |
| import android.view.ViewGroup | |
| import android.widget.BaseAdapter | |
| import com.example.raveesh.stormy.R | |
| import com.example.raveesh.stormy.weather.Day | |
| import kotlinx.android.synthetic.main.daily_list_item.view.* | |
| import org.jetbrains.anko.imageResource |
NewerOlder