AwesomeFilterWidget constructor

AwesomeFilterWidget({
  1. required CameraState state,
  2. Key? key,
  3. FilterListPosition filterListPosition = FilterListPosition.belowButton,
  4. EdgeInsets? filterListPadding,
  5. Widget? indicator,
  6. Widget? spacer = const SizedBox(height: 8),
  7. Curve animationCurve = Curves.easeInOut,
  8. Duration animationDuration = const Duration(milliseconds: 400),
})

Implementation

AwesomeFilterWidget({
  required this.state,
  super.key,
  this.filterListPosition = FilterListPosition.belowButton,
  this.filterListPadding,
  Widget? indicator,
  this.spacer = const SizedBox(height: 8),
  this.animationCurve = Curves.easeInOut,
  this.animationDuration = const Duration(milliseconds: 400),
}) : indicator = Builder(
        builder: (context) => Container(
          color: AwesomeThemeProvider.of(context)
              .theme
              .bottomActionsBackgroundColor,
          padding: const EdgeInsets.symmetric(vertical: 8.0),
          child: const Center(
            child: SizedBox(
              height: 6,
              width: 6,
              child: DecoratedBox(
                decoration: BoxDecoration(
                  color: Colors.white,
                  shape: BoxShape.circle,
                ),
              ),
            ),
          ),
        ),
      );