From 5e754ad233e59c4003079321c067ec53739a1a5c Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 1 Aug 2024 23:51:03 +0800 Subject: [PATCH] :dizzy: About page icon will rotate --- lib/screens/about.dart | 5 ++++- pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/screens/about.dart b/lib/screens/about.dart index 95fa90d..fbe8ef5 100644 --- a/lib/screens/about.dart +++ b/lib/screens/about.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter_animate/flutter_animate.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:url_launcher/url_launcher_string.dart'; @@ -17,7 +18,9 @@ class AboutScreen extends StatelessWidget { child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ - Image.asset('assets/logo.png', width: 64, height: 64), + Image.asset('assets/logo.png', width: 64, height: 64) + .animate(onPlay: (c) => c.repeat()) + .rotate(duration: 1000.ms), Text( 'Solian', style: Theme.of(context).textTheme.headlineMedium, diff --git a/pubspec.yaml b/pubspec.yaml index 8fe5f87..5c88eb2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: solian description: "The Solar Network App" publish_to: "none" -version: 1.2.0+6 +version: 1.2.0+7 environment: sdk: ">=3.3.4 <4.0.0"