null safety article
https://pub.dev/packages/animations/example
pub.devのanimationsパッケージのページにサンプルコード(へのリンク)がありますが、少し複雑なので、もう少し簡単なもので使ってみて、利用方法を整理したいと思います。
スタート地点。
https://pub.dev/packages/animations/install
↑の通りanimationsパッケージの依存関係をpubspec.yamlで宣言しましょう。
//main.dart import 'package:flutter/material.dart'; import 'package:animations/animations.dart'; //↑animationsパッケージが必要なのでインポートする。 void main() { runApp( MaterialApp( home: MyApp(), ), ); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( actions:…