Skip to content

Commit

Permalink
Merge pull request #38 from Abemelekermi/main
Browse files Browse the repository at this point in the history
added the animated logo to the splash screen
  • Loading branch information
dagmawibabi authored Sep 9, 2024
2 parents f9b5fa2 + 24912a3 commit b8df82e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import "package:arxiv/models/paper.dart";
import "package:arxiv/pages/home_page.dart";
import "package:flutter/material.dart";
import "package:hive_flutter/hive_flutter.dart";
import "package:lottie/lottie.dart";
import 'package:theme_provider/theme_provider.dart';

void main() async {
Expand Down Expand Up @@ -134,8 +135,8 @@ class _MyAppState extends State<MyApp> {
.scaffoldBackgroundColor,
height: MediaQuery.of(context).size.height,
width: MediaQuery.of(context).size.width,
child:
Image.asset("assets/icon/icon-removebg-preview.png"),
child: Lottie.asset(
"assets/animation/ScholArxivLoader.json"),
),
onAnimationEnd: () => debugPrint("On Fade In End"),
nextScreen: const HomePage(),
Expand Down
8 changes: 8 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.2.0"
lottie:
dependency: "direct main"
description:
name: lottie
sha256: "6a24ade5d3d918c306bb1c21a6b9a04aab0489d51a2582522eea820b4093b62b"
url: "https://pub.dev"
source: hosted
version: "3.1.2"
markdown:
dependency: transitive
description:
Expand Down
3 changes: 2 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dependencies:
animated_text_kit: ^4.2.2
loading_animation_widget: ^1.2.1
another_flutter_splash_screen: ^1.2.1

lottie: ^3.1.2
dev_dependencies:
flutter_test:
sdk: flutter
Expand Down Expand Up @@ -101,6 +101,7 @@ flutter:
assets:
- assets/system_message_templates/
- assets/icon/
- assets/animation/

# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware
Expand Down

0 comments on commit b8df82e

Please sign in to comment.