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

class PlaceholderSnapSheetExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Placeholder example'),
      ),
      body: SnappingSheet(
          child: Placeholder(
            color: Colors.red,
          ),
          sheetBelow: SnappingSheetContent(
              child: Placeholder(
                color: Colors.blue,
              ),
              heightBehavior: SnappingSheetHeight.fixed(expandOnSnapPositionOverflow: false)),
          grabbing: Container(
            color: Colors.white.withOpacity(0.0),
            child: Placeholder(
              color: Colors.green,
            ),
          ),
          sheetAbove: SnappingSheetContent(
            child: Placeholder(
              color: Colors.purple,
            ),
            heightBehavior: SnappingSheetHeight.fixed(expandOnSnapPositionOverflow: false),
          )),
    );
  }
}

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

class PlaceholderSnapSheetExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Placeholder example'),
      ),
      body: SnappingSheet(
          child: Placeholder(
            color: Colors.red,
          ),
          sheetBelow: SnappingSheetContent(
              child: Placeholder(
                color: Colors.blue,
              ),
              heightBehavior: SnappingSheetHeight.fit()),
          grabbing: Container(
            color: Colors.white.withOpacity(0.0),
            child: Placeholder(
              color: Colors.green,
            ),
          ),
          sheetAbove: SnappingSheetContent(
            child: Placeholder(
              color: Colors.purple,
            ),
            heightBehavior: SnappingSheetHeight.fit(),
          )),
    );
  }
}

Revert placeholder example to use hight fit again
Revert placeholder example to use hight fit again
