Transform Widget
Complete Code For Transform Widget In Flutter
Main.dart
import 'dart:math'; import 'package:flutter/material.dart'; void main() { runApp(new MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( debugShowCheckedModeBanner: false, title: 'Transform', home: new BasicTransform(), ); } } class BasicTransform extends StatelessWidget { @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.black54, appBar: AppBar( backgroundColor: Colors.lightGreen, title: Text("Transform Widget" )), body: Center( child: Container( color: Colors.lightGreen[100], child: Transform( alignment: Alignment.topRight, transform: Matrix4.skewY(0.3)..rotateZ(-pi / 12.0), child: Container( padding: const EdgeInsets.all(15.0), color: Colors.lightGreen, child: const Text('BajarangiSoft.com!', style: TextStyle(fontSize: 20.0,color: Colors.white)), ), ), ), ), ); } }