Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Jul 9, 2024
2 parents 97ea8a9 + b099b0f commit efebfd0
Show file tree
Hide file tree
Showing 50 changed files with 133 additions and 138 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## next

- feat: ¹ `NumberBox` now supports precision greater than 4. ² Add `NumberBox.pattern`, `NumberBox.formatter`, `NumberBox.format` ([#1080](https://github.com/bdlukaa/fluent_ui/pull/1080))
* fix: Resolved issue where `PaneItem` within `PaneItemExpander` remained accessible in `NavigationPane` compact mode ([#1081](https://github.com/bdlukaa/fluent_ui/issues/1081))

## 4.9.0

Expand Down
26 changes: 1 addition & 25 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
include: package:flutter_lints/flutter.yaml

linter:
rules:
library_private_types_in_public_api: false
prefer_single_quotes: true
sort_child_properties_last: true
directives_ordering: true
sized_box_for_whitespace: true
use_colored_box: true
use_decorated_box: true
avoid_unnecessary_containers: true
omit_local_variable_types: true
prefer_contains: true
unnecessary_await_in_return: true
unnecessary_parenthesis: true
unnecessary_to_list_in_spreads: true
use_build_context_synchronously: true
use_to_and_as_if_applicable: true
unnecessary_lambdas: true
exhaustive_cases: true
cascade_invocations: true
avoid_redundant_argument_values: true
use_rethrow_when_possible: true
sort_unnamed_constructors_first: true
tighten_type_of_initializing_formals: true
prefer_iterable_whereType: true
await_only_futures: true
rules:
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ packages:
path: ".."
relative: true
source: path
version: "4.8.7"
version: "4.9.0"
flutter:
dependency: "direct main"
description: flutter
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Arabic (`ar`).
class FluentLocalizationsAr extends FluentLocalizations {
FluentLocalizationsAr([String locale = 'ar']) : super(locale);
FluentLocalizationsAr([super.locale = 'ar']);

@override
String get backButtonTooltip => 'رجوع';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_be.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Belarusian (`be`).
class FluentLocalizationsBe extends FluentLocalizations {
FluentLocalizationsBe([String locale = 'be']) : super(locale);
FluentLocalizationsBe([super.locale = 'be']);

@override
String get backButtonTooltip => 'Назад';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_bn.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Bengali Bangla (`bn`).
class FluentLocalizationsBn extends FluentLocalizations {
FluentLocalizationsBn([String locale = 'bn']) : super(locale);
FluentLocalizationsBn([super.locale = 'bn']);

@override
String get backButtonTooltip => 'পিছনে';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ca.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Catalan Valencian (`ca`).
class FluentLocalizationsCa extends FluentLocalizations {
FluentLocalizationsCa([String locale = 'ca']) : super(locale);
FluentLocalizationsCa([super.locale = 'ca']);

@override
String get backButtonTooltip => 'Tornar';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_cs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Czech (`cs`).
class FluentLocalizationsCs extends FluentLocalizations {
FluentLocalizationsCs([String locale = 'cs']) : super(locale);
FluentLocalizationsCs([super.locale = 'cs']);

@override
String get backButtonTooltip => 'Zpět';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_de.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for German (`de`).
class FluentLocalizationsDe extends FluentLocalizations {
FluentLocalizationsDe([String locale = 'de']) : super(locale);
FluentLocalizationsDe([super.locale = 'de']);

@override
String get backButtonTooltip => 'Zurück';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_el.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Modern Greek (`el`).
class FluentLocalizationsEl extends FluentLocalizations {
FluentLocalizationsEl([String locale = 'el']) : super(locale);
FluentLocalizationsEl([super.locale = 'el']);

@override
String get backButtonTooltip => 'Πίσω';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_en.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for English (`en`).
class FluentLocalizationsEn extends FluentLocalizations {
FluentLocalizationsEn([String locale = 'en']) : super(locale);
FluentLocalizationsEn([super.locale = 'en']);

@override
String get backButtonTooltip => 'Back';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_es.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Spanish Castilian (`es`).
class FluentLocalizationsEs extends FluentLocalizations {
FluentLocalizationsEs([String locale = 'es']) : super(locale);
FluentLocalizationsEs([super.locale = 'es']);

@override
String get backButtonTooltip => 'Volver';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_fa.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Persian (`fa`).
class FluentLocalizationsFa extends FluentLocalizations {
FluentLocalizationsFa([String locale = 'fa']) : super(locale);
FluentLocalizationsFa([super.locale = 'fa']);

@override
String get backButtonTooltip => 'برگشت';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_fr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for French (`fr`).
class FluentLocalizationsFr extends FluentLocalizations {
FluentLocalizationsFr([String locale = 'fr']) : super(locale);
FluentLocalizationsFr([super.locale = 'fr']);

@override
String get backButtonTooltip => 'Retour';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_he.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Hebrew (`he`).
class FluentLocalizationsHe extends FluentLocalizations {
FluentLocalizationsHe([String locale = 'he']) : super(locale);
FluentLocalizationsHe([super.locale = 'he']);

@override
String get backButtonTooltip => 'הקודם';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_hi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Hindi (`hi`).
class FluentLocalizationsHi extends FluentLocalizations {
FluentLocalizationsHi([String locale = 'hi']) : super(locale);
FluentLocalizationsHi([super.locale = 'hi']);

@override
String get backButtonTooltip => 'वापस';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_hr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Croatian (`hr`).
class FluentLocalizationsHr extends FluentLocalizations {
FluentLocalizationsHr([String locale = 'hr']) : super(locale);
FluentLocalizationsHr([super.locale = 'hr']);

@override
String get backButtonTooltip => 'Natrag';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_hu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Hungarian (`hu`).
class FluentLocalizationsHu extends FluentLocalizations {
FluentLocalizationsHu([String locale = 'hu']) : super(locale);
FluentLocalizationsHu([super.locale = 'hu']);

@override
String get backButtonTooltip => 'Vissza';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_id.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Indonesian (`id`).
class FluentLocalizationsId extends FluentLocalizations {
FluentLocalizationsId([String locale = 'id']) : super(locale);
FluentLocalizationsId([super.locale = 'id']);

@override
String get backButtonTooltip => 'Kembali';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_it.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Italian (`it`).
class FluentLocalizationsIt extends FluentLocalizations {
FluentLocalizationsIt([String locale = 'it']) : super(locale);
FluentLocalizationsIt([super.locale = 'it']);

@override
String get backButtonTooltip => 'Indietro';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ja.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Japanese (`ja`).
class FluentLocalizationsJa extends FluentLocalizations {
FluentLocalizationsJa([String locale = 'ja']) : super(locale);
FluentLocalizationsJa([super.locale = 'ja']);

@override
String get backButtonTooltip => '戻る';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ko.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Korean (`ko`).
class FluentLocalizationsKo extends FluentLocalizations {
FluentLocalizationsKo([String locale = 'ko']) : super(locale);
FluentLocalizationsKo([super.locale = 'ko']);

@override
String get backButtonTooltip => '뒤로';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ku.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Kurdish (`ku`).
class FluentLocalizationsKu extends FluentLocalizations {
FluentLocalizationsKu([String locale = 'ku']) : super(locale);
FluentLocalizationsKu([super.locale = 'ku']);

@override
String get backButtonTooltip => 'گەڕانەوە';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ms.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Malay (`ms`).
class FluentLocalizationsMs extends FluentLocalizations {
FluentLocalizationsMs([String locale = 'ms']) : super(locale);
FluentLocalizationsMs([super.locale = 'ms']);

@override
String get backButtonTooltip => 'Kembali';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_my.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Burmese (`my`).
class FluentLocalizationsMy extends FluentLocalizations {
FluentLocalizationsMy([String locale = 'my']) : super(locale);
FluentLocalizationsMy([super.locale = 'my']);

@override
String get backButtonTooltip => 'နောက်သို့';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_nl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Dutch Flemish (`nl`).
class FluentLocalizationsNl extends FluentLocalizations {
FluentLocalizationsNl([String locale = 'nl']) : super(locale);
FluentLocalizationsNl([super.locale = 'nl']);

@override
String get backButtonTooltip => 'Terug';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_pl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Polish (`pl`).
class FluentLocalizationsPl extends FluentLocalizations {
FluentLocalizationsPl([String locale = 'pl']) : super(locale);
FluentLocalizationsPl([super.locale = 'pl']);

@override
String get backButtonTooltip => 'Wstecz';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_pt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Portuguese (`pt`).
class FluentLocalizationsPt extends FluentLocalizations {
FluentLocalizationsPt([String locale = 'pt']) : super(locale);
FluentLocalizationsPt([super.locale = 'pt']);

@override
String get backButtonTooltip => 'Voltar';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Romanian Moldavian Moldovan (`ro`).
class FluentLocalizationsRo extends FluentLocalizations {
FluentLocalizationsRo([String locale = 'ro']) : super(locale);
FluentLocalizationsRo([super.locale = 'ro']);

@override
String get backButtonTooltip => 'Înapoi';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ru.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Russian (`ru`).
class FluentLocalizationsRu extends FluentLocalizations {
FluentLocalizationsRu([String locale = 'ru']) : super(locale);
FluentLocalizationsRu([super.locale = 'ru']);

@override
String get backButtonTooltip => 'Назад';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_sk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Slovak (`sk`).
class FluentLocalizationsSk extends FluentLocalizations {
FluentLocalizationsSk([String locale = 'sk']) : super(locale);
FluentLocalizationsSk([super.locale = 'sk']);

@override
String get backButtonTooltip => 'Naspäť';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_sv.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Swedish (`sv`).
class FluentLocalizationsSv extends FluentLocalizations {
FluentLocalizationsSv([String locale = 'sv']) : super(locale);
FluentLocalizationsSv([super.locale = 'sv']);

@override
String get backButtonTooltip => 'Tillbaka';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ta.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Tamil (`ta`).
class FluentLocalizationsTa extends FluentLocalizations {
FluentLocalizationsTa([String locale = 'ta']) : super(locale);
FluentLocalizationsTa([super.locale = 'ta']);

@override
String get backButtonTooltip => 'பின்';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_th.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Thai (`th`).
class FluentLocalizationsTh extends FluentLocalizations {
FluentLocalizationsTh([String locale = 'th']) : super(locale);
FluentLocalizationsTh([super.locale = 'th']);

@override
String get backButtonTooltip => 'กลับ';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_tr.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Turkish (`tr`).
class FluentLocalizationsTr extends FluentLocalizations {
FluentLocalizationsTr([String locale = 'tr']) : super(locale);
FluentLocalizationsTr([super.locale = 'tr']);

@override
String get backButtonTooltip => 'Geri';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_uk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Ukrainian (`uk`).
class FluentLocalizationsUk extends FluentLocalizations {
FluentLocalizationsUk([String locale = 'uk']) : super(locale);
FluentLocalizationsUk([super.locale = 'uk']);

@override
String get backButtonTooltip => 'Назад';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_ur.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Urdu (`ur`).
class FluentLocalizationsUr extends FluentLocalizations {
FluentLocalizationsUr([String locale = 'ur']) : super(locale);
FluentLocalizationsUr([super.locale = 'ur']);

@override
String get backButtonTooltip => 'آگے';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_uz.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Uzbek (`uz`).
class FluentLocalizationsUz extends FluentLocalizations {
FluentLocalizationsUz([String locale = 'uz']) : super(locale);
FluentLocalizationsUz([super.locale = 'uz']);

@override
String get backButtonTooltip => 'Ortga';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_vi.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Vietnamese (`vi`).
class FluentLocalizationsVi extends FluentLocalizations {
FluentLocalizationsVi([String locale = 'vi']) : super(locale);
FluentLocalizationsVi([super.locale = 'vi']);

@override
String get backButtonTooltip => 'Quay lại';
Expand Down
2 changes: 1 addition & 1 deletion lib/l10n/generated/fluent_localizations_zh.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'fluent_localizations.dart';

/// The translations for Chinese (`zh`).
class FluentLocalizationsZh extends FluentLocalizations {
FluentLocalizationsZh([String locale = 'zh']) : super(locale);
FluentLocalizationsZh([super.locale = 'zh']);

@override
String get backButtonTooltip => '返回';
Expand Down
4 changes: 2 additions & 2 deletions lib/src/controls/flyouts/content_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ class FlyoutState extends State<Flyout> {
}
}

typedef _MenuBuilder = Widget Function(
typedef MenuBuilder = Widget Function(
BuildContext context,
BoxConstraints rootSize,
Iterable<Widget> menus,
Iterable<GlobalKey> keys,
);

class MenuInfoProvider extends StatefulWidget {
final _MenuBuilder builder;
final MenuBuilder builder;

@protected
const MenuInfoProvider({super.key, required this.builder});
Expand Down
Loading

0 comments on commit efebfd0

Please sign in to comment.