Flutter - Transform scale in center of Container

Flutter - Transform scale in center of Container

I'm trying to create a flip effect, but before starting with the animation I'm trying to make the transformation stay in the center of the container.

But even using FractionalOffset(0.5, 0.5) or Center() wrapping the Transform() result remains on the top of the Container, as in the image below.

Could you help me leave it in the center of the container?

import 'package:flutter/material.dart';

void main() { runApp(new MyApp()); }

class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( home: new MyHomePage(), ); } }

class MyHomePage extends StatelessWidget{ @override Widget build(BuildContext context) { return new Scaffold( appBar: new AppBar(), body: new Center( child: new Column( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ new Container( alignment: new FractionalOffset(0.5, 0.5), height: 144.0, width: 360.0, decoration: new BoxDecoration( border: new Border.all(color: new Color(0xFF9E9E9E)) ), child: new Transform( transform: new Matrix4.identity()..scale(1.0, 0.05),
child: new Container( decoration: new BoxDecoration( color: new Color(0xFF005CA9),
),
), )
)
], ), ), ); } }

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

How to Create Liquid Swipe Animation in Flutter | Liquid Swipe Flutter

Today tutorial, I am going to show you how to create Liquid Swipe Animation in Flutter. liquid Swipe animation is amazing and its Created for iOS Platform and f

11 Best Flutter Development Tools You Will Need As A Beginner | AllTechSavvy

In this tutorial, I am going to show you some of the Best Flutter development tools available in the market which will help you to make Development Produc

How to Create Splash Screen in a Flutter App | Splash Screen Tutorial

Splash Screen help Brand to get Noticed Or Brand Awareness so Today I am going to show how to create Splash screen in a flutter Splash Screen Animation can b...