Skip to content
Discussion options

You must be logged in to vote

@bschrdr

Any non-scrollable content in a sheet can serve as a drag handle:

    return Sheet(
      ...
      scrollConfiguration: const SheetScrollConfiguration(),
      child: Column(
        mainAxisSize: MainAxisSize.max,
        children: [
          // Drag handle
          ColoredBox(
            color: Colors.purple,
            child: SizedBox.fromSize(
              size: Size.fromHeight(64),
              child: Center(
                child: Icon(Icons.drag_handle),
              ),
            ),
          ),
          Expanded(
            child: ListView.builder(
...
Full Code
import 'package:flutter/material.dart';
import 'package:smooth_sheets/smooth_sheets.dart';

void main

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bschrdr
Comment options

Answer selected by bschrdr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants