Browse Source

style(neon): export LabelBuilder from sort_box and settings

pull/504/head
Nikolas Rimikis 1 year ago
parent
commit
91faa0ab7c
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 1
      packages/neon/neon/lib/settings.dart
  2. 1
      packages/neon/neon/lib/sort_box.dart
  3. 2
      packages/neon/neon/lib/src/models/label_builder.dart
  4. 2
      packages/neon/neon/lib/src/settings/models/option.dart
  5. 2
      packages/neon/neon/lib/src/settings/models/options_category.dart
  6. 2
      packages/neon/neon/lib/src/settings/models/select_option.dart
  7. 2
      packages/neon/neon/lib/src/sort_box/sort_box_order_option_values.dart

1
packages/neon/neon/lib/settings.dart

@ -1,3 +1,4 @@
export 'package:neon/src/models/label_builder.dart';
export 'package:neon/src/settings/models/nextcloud_app_options.dart'; export 'package:neon/src/settings/models/nextcloud_app_options.dart';
export 'package:neon/src/settings/models/options_category.dart'; export 'package:neon/src/settings/models/options_category.dart';
export 'package:neon/src/settings/models/select_option.dart'; export 'package:neon/src/settings/models/select_option.dart';

1
packages/neon/neon/lib/sort_box.dart

@ -1,3 +1,4 @@
export 'package:neon/src/models/label_builder.dart';
export 'package:neon/src/sort_box/sort_box_builder.dart'; export 'package:neon/src/sort_box/sort_box_builder.dart';
export 'package:neon/src/sort_box/sort_box_order_option_values.dart'; export 'package:neon/src/sort_box/sort_box_order_option_values.dart';
export 'package:sort_box/sort_box.dart'; export 'package:sort_box/sort_box.dart';

2
packages/neon/neon/lib/src/settings/widgets/label_builder.dart → packages/neon/neon/lib/src/models/label_builder.dart

@ -1,5 +1,3 @@
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:meta/meta.dart';
@internal
typedef LabelBuilder = String Function(BuildContext); typedef LabelBuilder = String Function(BuildContext);

2
packages/neon/neon/lib/src/settings/models/option.dart

@ -2,9 +2,9 @@ import 'dart:async';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';
import 'package:neon/src/models/label_builder.dart';
import 'package:neon/src/settings/models/options_category.dart'; import 'package:neon/src/settings/models/options_category.dart';
import 'package:neon/src/settings/models/storage.dart'; import 'package:neon/src/settings/models/storage.dart';
import 'package:neon/src/settings/widgets/label_builder.dart';
import 'package:rxdart/rxdart.dart'; import 'package:rxdart/rxdart.dart';
@internal @internal

2
packages/neon/neon/lib/src/settings/models/options_category.dart

@ -1,4 +1,4 @@
import 'package:neon/src/settings/widgets/label_builder.dart'; import 'package:neon/src/models/label_builder.dart';
class OptionsCategory { class OptionsCategory {
OptionsCategory({ OptionsCategory({

2
packages/neon/neon/lib/src/settings/models/select_option.dart

@ -1,8 +1,8 @@
import 'dart:async'; import 'dart:async';
import 'package:collection/collection.dart'; import 'package:collection/collection.dart';
import 'package:neon/src/models/label_builder.dart';
import 'package:neon/src/settings/models/option.dart'; import 'package:neon/src/settings/models/option.dart';
import 'package:neon/src/settings/widgets/label_builder.dart';
class SelectOption<T> extends Option<T> { class SelectOption<T> extends Option<T> {
/// Creates a SelectOption /// Creates a SelectOption

2
packages/neon/neon/lib/src/sort_box/sort_box_order_option_values.dart

@ -1,5 +1,5 @@
import 'package:neon/l10n/localizations.dart'; import 'package:neon/l10n/localizations.dart';
import 'package:neon/src/settings/widgets/label_builder.dart'; import 'package:neon/src/models/label_builder.dart';
import 'package:sort_box/sort_box.dart'; import 'package:sort_box/sort_box.dart';
final sortBoxOrderOptionValues = <SortBoxOrder, LabelBuilder>{ final sortBoxOrderOptionValues = <SortBoxOrder, LabelBuilder>{

Loading…
Cancel
Save