Add Flare animation in the login screen

This commit is contained in:
Ricardo Markiewicz
2019-10-18 11:44:48 -03:00
parent ffbf6d1050
commit bac9737bbb
7 changed files with 38 additions and 29 deletions
Binary file not shown.
+1 -1
View File
@@ -192,7 +192,7 @@ SPEC CHECKSUMS:
FirebaseCore: e38f025287b413255a53acc1945d048a112047f7
FirebaseFirestore: 0537b2a960a4819fae2834e688e5daeb571c81d6
FirebaseInstanceID: 0e0348a3c00a734fa376a070f5ad4533ad975cb5
Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
flutter_local_notifications: 9e4738ce2471c5af910d961a6b7eadcf57c50186
google_sign_in: 27e70a98b529f0b076d4b19f231b81da28b1750b
GoogleAppMeasurement: 7f028ea162b72c8f326daec74afc95d94f7a47d6
+1
View File
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:flare_dart/actor.dart';
class LoginState with ChangeNotifier {
final GoogleSignIn _googleSignIn = GoogleSignIn();
+9 -1
View File
@@ -1,6 +1,8 @@
import 'package:flare_flutter/flare_actor.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:flare_dart/actor.dart';
import '../login_state.dart';
@@ -29,7 +31,13 @@ class _LoginPageState extends State<LoginPage> {
),
Padding(
padding: const EdgeInsets.all(32.0),
child: Image.asset('assets/login_background.png'),
child: Container(
height: 300,
child: FlareActor(
"assets/login_background.flr",
animation: "idle",
),
),
),
Text(
"Your personal finance app",
-15
View File
@@ -1,15 +0,0 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
class Demo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return
Provider<String>.value(
value: 'Hello World',
child: Consumer<String>(
builder: (context, value, child) => Text(value),
),
);
}
}
+26 -12
View File
@@ -21,14 +21,14 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
version: "2.3.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
version: "1.0.5"
charcode:
dependency: transitive
description:
@@ -77,7 +77,7 @@ packages:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.6"
version: "2.1.3"
cupertino_icons:
dependency: "direct main"
description:
@@ -106,6 +106,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.0+1"
flare_dart:
dependency: transitive
description:
name: flare_dart
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.2"
flare_flutter:
dependency: "direct main"
description:
name: flare_flutter
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.2"
flutter:
dependency: "direct main"
description: flutter
@@ -178,28 +192,28 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.6"
version: "1.1.7"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.2"
version: "1.6.4"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
version: "1.8.0+1"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
version: "2.4.0"
platform:
dependency: transitive
description:
@@ -220,7 +234,7 @@ packages:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.3"
version: "2.0.5"
rect_getter:
dependency: "direct main"
description:
@@ -267,7 +281,7 @@ packages:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.4"
version: "1.0.5"
term_glyph:
dependency: transitive
description:
@@ -302,7 +316,7 @@ packages:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.4.1"
version: "3.5.0"
yaml:
dependency: transitive
description:
@@ -311,5 +325,5 @@ packages:
source: hosted
version: "2.1.16"
sdks:
dart: ">=2.2.2 <3.0.0"
flutter: ">=1.5.0 <2.0.0"
dart: ">=2.4.0 <3.0.0"
flutter: ">=1.7.8+hotfix.3 <2.0.0"
+1
View File
@@ -34,6 +34,7 @@ dependencies:
flutter_launcher_icons: ^0.7.2+1
flutter_local_notifications: ^0.8.0
datetime_picker_formfield: ^0.4.0
flare_flutter:
dev_dependencies:
flutter_test: