untitled

Pasted Nov 4, 2026, 6:56 PM1 file49 lines

Scan to open on your phone

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

https://codepastes.com/zzgscn1t1rf2wg7n
untitled
import 'package:flutter/material.dart';

void main() => runApp(const MaterialApp(home: Profile()));

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

  @override
  Widget build(BuildContext context) {
    bool tablet = MediaQuery.of(context).size.width >= 600;

    Widget details = const Column(
      mainAxisSize: MainAxisSize.min,
      children: [
        Text("Manish Chandra",
            style: TextStyle(fontSize: 22, fontWeight: FontWeight.bold)),
        Text("Roll No: 24261A05Z0"),
        Text("B.Tech CSE - 3rd Year"),
        Text("MGIT, Hyderabad"),
      ],
    );

    return Scaffold(
      appBar: AppBar(title: const Text("Student Profile")),
      body: Center(
        child: Card(
          child: Padding(
            padding: const EdgeInsets.all(20),
            child: tablet
                ? Row(children: [
                    const CircleAvatar(radius: 50, child: Icon(Icons.person)),
                    const SizedBox(width: 20),
                    details,
                  ])
                : Column(
                    mainAxisSize: MainAxisSize.min,
                    children: [
                      const CircleAvatar(
                          radius: 50, child: Icon(Icons.person)),
                      const SizedBox(height: 20),
                      details,
                    ],
                  ),
          ),
        ),
      ),
    );
  }
}

1,425 chars · codepastes.com