untitled

Pasted Oct 8, 2026, 4:51 AM1 file45 linesexpires in 23 h

Scan to open on your phone

Point a camera at the QR code - it opens this exact paste, no app needed.

https://codepastes.com/sairahul
untitled
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key}); @override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
textTheme: const TextTheme(
bodyLarge: TextStyle(
fontSize: 50,
backgroundColor: Colors.amber,
fontWeight: FontWeight.bold,
color: Colors.red,
),
),
appBarTheme: const AppBarTheme(
backgroundColor: Colors.blue,
foregroundColor: Colors.white,
),
),
home: const HomePage(),
);
}
}
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Theme Example"),
),
body: Center(
child: Text(
"Welcome to Flutter",
style: Theme.of(context).textTheme.bodyLarge,
),
),
);
}
}

883 chars · codepastes.com