No Description

options.dart 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import 'package:flutter/material.dart';
  2. import 'package:photo/src/delegate/badge_delegate.dart';
  3. import 'package:photo/src/delegate/checkbox_builder_delegate.dart';
  4. import 'package:photo/src/delegate/loading_delegate.dart';
  5. import 'package:photo/src/delegate/sort_delegate.dart';
  6. class Options {
  7. final int rowCount;
  8. final int maxSelected;
  9. final double padding;
  10. final double itemRadio;
  11. final Color themeColor;
  12. final Color dividerColor;
  13. final Color textColor;
  14. final Color disableColor;
  15. final int thumbSize;
  16. final SortDelegate sortDelegate;
  17. final CheckBoxBuilderDelegate checkBoxBuilderDelegate;
  18. final LoadingDelegate loadingDelegate;
  19. final BadgeDelegate badgeDelegate;
  20. final PickType pickType;
  21. const Options({
  22. this.rowCount,
  23. this.maxSelected,
  24. this.padding,
  25. this.itemRadio,
  26. this.themeColor,
  27. this.dividerColor,
  28. this.textColor,
  29. this.disableColor,
  30. this.thumbSize,
  31. this.sortDelegate,
  32. this.checkBoxBuilderDelegate,
  33. this.loadingDelegate,
  34. this.badgeDelegate,
  35. this.pickType,
  36. });
  37. }
  38. enum PickType {
  39. all,
  40. onlyImage,
  41. onlyVideo,
  42. }