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/options_category.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_order_option_values.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:meta/meta.dart';
@internal
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: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/storage.dart';
import 'package:neon/src/settings/widgets/label_builder.dart';
import 'package:rxdart/rxdart.dart';
@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 {
OptionsCategory({

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

@ -1,8 +1,8 @@
import 'dart:async';
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/widgets/label_builder.dart';
class SelectOption<T> extends Option<T> {
/// 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/src/settings/widgets/label_builder.dart';
import 'package:neon/src/models/label_builder.dart';
import 'package:sort_box/sort_box.dart';
final sortBoxOrderOptionValues = <SortBoxOrder, LabelBuilder>{

Loading…
Cancel
Save