rounded_scaffold_body 0.0.1 copy "rounded_scaffold_body: ^0.0.1" to clipboard
rounded_scaffold_body: ^0.0.1 copied to clipboard

A customizable Flutter widget that provides a scaffold body with top rounded corners, background color, and shadow effects.

example/main.dart

import 'package:flutter/material.dart';
import 'package:rounded_scaffold_body/rounded_scaffold_body.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Rounded Scaffold Body Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomeScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.blueAccent,
      appBar: AppBar(
        title: const Text('Rounded Body Demo'),
      ),
      body: RoundedScaffoldBody(
        bgColor: Colors.white,
        round: 40,
        shadowColor: Colors.black26,
        shadowSpreadRadius: 5,
        blurRadius: 10,
        offset: const Offset(0, 4),
        padding: const EdgeInsets.all(20),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: const [
            Text(
              'Welcome!',
              style: TextStyle(fontSize: 28, fontWeight: FontWeight.bold),
            ),
            SizedBox(height: 12),
            Text(
              'This is a simple example using RoundedScaffoldBody.',
              style: TextStyle(fontSize: 18),
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
130
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter widget that provides a scaffold body with top rounded corners, background color, and shadow effects.

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on rounded_scaffold_body