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
fun registerAllPersonListener() { | |
MyApp.database?.personDao()?.getAllPeople() | |
?.subscribeOn(Schedulers.io()) | |
?.observeOn(AndroidSchedulers.mainThread()) | |
?.subscribe { listOfPeople -> | |
view.personTableUpdated(listOfPeople) | |
} | |
} |
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
class _MyHomePageState extends State<MyHomePage> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
appBar: AppBar( | |
title: Text(widget.title), | |
), | |
body: Center( | |
child: FlareActor("assets/heart.flr", alignment:Alignment.center, fit:BoxFit.contain, animation: "heart",), |
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:flare/flare_actor.dart'; | |
const String ANIM_JUST_NIGHT = "just_night"; | |
const String ANIM_NIGHT_TO_DAY = "night_to_day"; | |
const String ANIM_DAY_TO_NIGHT = "day_to_night"; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { |
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 'dart:math'; | |
const SCALE_FRACTION = 0.7; | |
const FULL_SCALE = 1.0; | |
const PAGER_HEIGHT = 200.0; | |
class ItCrowdPage extends StatefulWidget { | |
@override | |
_ItCrowdPageState createState() => _ItCrowdPageState(); |
OlderNewer