Skip to content

Instantly share code, notes, and snippets.

View Captured-Heart's full-sized avatar
🌏
Remote

Captured Heart Captured-Heart

🌏
Remote
View GitHub Profile
@Captured-Heart
Captured-Heart / wolt_modal_sheet_and_slider_sample.dart
Last active February 10, 2024 11:15
A code sample using "WoltModalSheet" and "action_slider" packages
// Always to remember to import the packages
import 'package:action_slider/action_slider.dart';
import 'package:wolt_modal_sheet/wolt_modal_sheet.dart';
1.) ACTION_SLIDERS (https://pub.dev/packages/action_slider)
//There are many slide/swipe packages but this served my use case
ActionSlider.standard(
height: 56,
boxShadow: const [],
@Captured-Heart
Captured-Heart / expandable_bottom_sheet.dart
Created March 18, 2024 22:16
It is a fork from expandable_bottom_sheet previously on pub.dev. it allows persistent header and drag
//you can remove some of the exports here and refactor the affected part of the code
import 'package:animated_widgets/widgets/rotation_animated.dart';
import 'package:animated_widgets/widgets/shake_animated_widget.dart';
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
/// [ExpandableBottomSheet] is a BottomSheet with a draggable height like the
/// Google Maps App on Android.
///