RotatedBox Widget in Flutter

 import "package:flutter/material.dart";

import "package:sdreatech_learning_widget/All_widgets_Ui/customWidget.dart";

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

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

@override
Widget build(BuildContext context) {
return MaterialApp(
title: "RotatedBox",
debugShowCheckedModeBanner: false,
theme: ThemeData(
appBarTheme: const AppBarTheme(
backgroundColor: Colors.grey,
centerTitle: true,
),
),
home: const RotatedBoxPractice(),
);
}
}

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

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: UiHelper.customAppBar("RotatedBox"),
body: const Center(
child: RotatedBox(
quarterTurns: 3,
child: Text(
"Flutter Teacher",
style: TextStyle(fontSize: 40.0, fontWeight: FontWeight.bold),
),
),
),
);
}
}


Comments

Popular posts from this blog

Pagination with Bloc Pattern in Flutter

Pagination First Practical in Flutter

ExpansionPanel with ExpansionPanelList with Complete Collapse Operation in Flutter