(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| 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 |
| 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 |
| 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() { |
| List<Recipe> categoryListGenerator(iCategory) { | |
| List<Recipe> _categoryRecipe = recipes.where((recipe) { | |
| return recipe.category == iCategory; | |
| }).toList(); | |
| return _categoryRecipe; | |
| } | |
| List<Recipe> recipes = [ | |
| new Recipe( | |
| "Pesto Pastry", |
| 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 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| class UserInfoManager extends InheritedWidget { | |
| final Key key; | |
| final ManagedUserInfo managedUserInfo; | |
| final Widget child; | |
| final Function() refreshManagedUserInfo; | |
| UserInfoManager( | |
| {@required this.managedUserInfo, | |
| @required this.child, | |
| @required this.setManagedUserInfo, |
| import 'dart:async'; | |
| import 'dart:core'; | |
| import 'package:flutter_ritetag/model/client.dart'; | |
| import 'package:flutter_ritetag/network/network_calls.dart'; | |
| import 'package:meta/meta.dart'; | |
| import 'package:shared_preferences/shared_preferences.dart'; | |
| import 'user_info.dart'; |
| void main() { | |
| var anda = [1, 2, 3, 4, 5, 6, 7, 8, 9]; | |
| var divisibleByTwo = (int i) { | |
| return i % 2 == 0; | |
| }; | |
| var greaterThanThree = (int i) { | |
| return i > 3; | |
| }; |
| void main() async { | |
| List<String> strings = [ | |
| 'jgjjhga', | |
| 'tyuyua', | |
| 'afghf', | |
| 'dsfsd', | |
| 'trrt', | |
| 'zxczx', | |
| 'a', | |
| 'asd', |