RotatedBox Widget

Project Preview

  • Interested in seeing the live demo? Click here to explore.
  • Want to view the source code? Visit the project on GitHub.

Code Snippet

import 'package:flutter/material.dart';

class RotatedBoxWidget extends StatelessWidget {
  const RotatedBoxWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.black,
      appBar: AppBar(
        title: const Text("RotatedBox Widget"),
      ),
      body: const Center(
        child: RotatedBox(
          quarterTurns: 1,
          // quarterTurns: 2,
          child: FlutterLogo(
            size: 200,
          ),
        ),
      ),
    );
  }
}