custom_background_scaffold 1.0.0 copy "custom_background_scaffold: ^1.0.0" to clipboard
custom_background_scaffold: ^1.0.0 copied to clipboard

Supports custom solid color, gradient color, background image Scaffold

It makes adding page background styles easier and the code more concise.

Features #

Supports custom solid color, gradient color, background image Scaffold

Getting started #

dependencies:
  custom_background_scaffold: ^1.0.0

Usage #

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

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

  @override
  Widget build(BuildContext context) {
    return  PPScaffold(
      gradient: const LinearGradient(
        colors: [Colors.blue, Colors.red],
      ),
      // backgroundColor: Colors.yellow,
      // backgroundImage: const DecorationImage(
      //   image: AssetImage('assets/background.jpg'),
      // ),
      appBar: AppBar(
        title: const Text('Custom Background Scaffold'),
      ),
      body: const Text('Hello World'),
    )
  }
}

0
likes
150
points
268
downloads

Publisher

verified publisherppsw.asia

Weekly Downloads

Supports custom solid color, gradient color, background image Scaffold

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on custom_background_scaffold