custom_scaffold 1.0.3 copy "custom_scaffold: ^1.0.3" to clipboard
custom_scaffold: ^1.0.3 copied to clipboard

A customizable scaffold widget with support for dark/light themes, background images, and floating action buttons.

example/example.dart

// example/example.dart
import 'package:custom_scaffold/custom_scaffold.dart';
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(
      title: 'Custom Scaffold Example',
      home: CustomScaffold(
        appBar: AppBar(
          title: const Text('Custom Scaffold Example'),
        ),
        backgroundColor: Colors.lightBlue[50],
        isDark: false,
        lightBackgroundAsset: 'assets/light_background.png',
        darkBackgroundAsset: 'assets/dark_background.png',
        floatingActionButton: FloatingActionButton(
          onPressed: () {},
          child: const Icon(Icons.add),
        ),
        bottomNav: BottomNavigationBar(
          items: const [
            BottomNavigationBarItem(
              icon: Icon(Icons.home),
              label: 'Home',
            ),
            BottomNavigationBarItem(
              icon: Icon(Icons.settings),
              label: 'Settings',
            ),
          ],
        ),
        child: const Center(
          child:  Text(
            'Hello from Custom Scaffold!',
            style: TextStyle(fontSize: 24),
          ),
        ),
      ),
    );
  }
}
2
likes
160
points
28
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable scaffold widget with support for dark/light themes, background images, and floating action buttons.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on custom_scaffold