Skip to content

Commit

Permalink
Fix rtl locale
Browse files Browse the repository at this point in the history
  • Loading branch information
kawaijoe committed Dec 14, 2024
1 parent 12d8d75 commit 8ea80ef
Show file tree
Hide file tree
Showing 102 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions forui/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class _ApplicationState extends State<Application> with SingleTickerProviderStat

@override
Widget build(BuildContext context) => MaterialApp(
// locale: const Locale('ar'),
localizationsDelegates: FLocalizations.localizationsDelegates,
supportedLocales: FLocalizations.supportedLocales,
builder: (context, child) => FTheme(
Expand Down
14 changes: 14 additions & 0 deletions forui/example/lib/sandbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ class _SandboxState extends State<Sandbox> with SingleTickerProviderStateMixin {
description: Text('Please enter your username.'),
maxLines: 1,
),
const SizedBox(height: 20),
const FLabel(
axis: Axis.horizontal,
label: Text('Label'),
description: Text('Description'),
error: Text('Error'),
state: FLabelState.error,
child: SizedBox(
width: 200,
height: 20,
child: Placeholder(),
),
),
const SizedBox(height: 20),
FCalendar(controller: calendarController),
FCalendar(controller: calendarController),
],
Expand Down
2 changes: 1 addition & 1 deletion forui/lib/src/widgets/label.dart
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ final class FLabelStyles with Diagnosticable {
FLabelStyles.inherit({required FStyle style})
: horizontalStyle = (
layout: const FLabelLayoutStyle(
childPadding: EdgeInsets.only(right: 8),
childPadding: EdgeInsets.symmetric(horizontal: 8),
descriptionPadding: EdgeInsets.only(top: 2),
errorPadding: EdgeInsets.only(top: 2),
),
Expand Down
Binary file modified forui/test/golden/check-box/zinc-dark/disabled-checked-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/disabled-checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/disabled-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/enabled-checked-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/enabled-checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/enabled-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/enabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/label-disabled-checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/label-disabled-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/label-disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/label-enabled-checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/label-enabled-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-dark/label-enabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/disabled-checked-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/disabled-checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/disabled-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/enabled-checked-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/enabled-checked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/enabled-error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/enabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified forui/test/golden/check-box/zinc-light/focused.png
Binary file modified forui/test/golden/check-box/zinc-light/label-disabled-checked.png
Binary file modified forui/test/golden/check-box/zinc-light/label-disabled-error.png
Binary file modified forui/test/golden/check-box/zinc-light/label-disabled.png
Binary file modified forui/test/golden/check-box/zinc-light/label-enabled-checked.png
Binary file modified forui/test/golden/check-box/zinc-light/label-enabled-error.png
Binary file modified forui/test/golden/check-box/zinc-light/label-enabled.png
Binary file modified forui/test/golden/label/zinc-dark/horizontal-FLabelState.error.png
Binary file modified forui/test/golden/radio/zinc-dark/disabled-checked-error.png
Binary file modified forui/test/golden/radio/zinc-dark/disabled-checked.png
Binary file modified forui/test/golden/radio/zinc-dark/disabled-error.png
Binary file modified forui/test/golden/radio/zinc-dark/disabled.png
Binary file modified forui/test/golden/radio/zinc-dark/enabled-checked-error.png
Binary file modified forui/test/golden/radio/zinc-dark/enabled-checked.png
Binary file modified forui/test/golden/radio/zinc-dark/enabled-error.png
Binary file modified forui/test/golden/radio/zinc-dark/enabled.png
Binary file modified forui/test/golden/radio/zinc-dark/focused.png
Binary file modified forui/test/golden/radio/zinc-dark/label-disabled-checked-error.png
Binary file modified forui/test/golden/radio/zinc-dark/label-disabled-checked.png
Binary file modified forui/test/golden/radio/zinc-dark/label-disabled-error.png
Binary file modified forui/test/golden/radio/zinc-dark/label-disabled.png
Binary file modified forui/test/golden/radio/zinc-dark/label-enabled-checked-error.png
Binary file modified forui/test/golden/radio/zinc-dark/label-enabled-checked.png
Binary file modified forui/test/golden/radio/zinc-dark/label-enabled-error.png
Binary file modified forui/test/golden/radio/zinc-dark/label-enabled.png
Binary file modified forui/test/golden/radio/zinc-light/disabled-checked-error.png
Binary file modified forui/test/golden/radio/zinc-light/disabled-checked.png
Binary file modified forui/test/golden/radio/zinc-light/disabled-error.png
Binary file modified forui/test/golden/radio/zinc-light/disabled.png
Binary file modified forui/test/golden/radio/zinc-light/enabled-checked-error.png
Binary file modified forui/test/golden/radio/zinc-light/enabled-checked.png
Binary file modified forui/test/golden/radio/zinc-light/enabled-error.png
Binary file modified forui/test/golden/radio/zinc-light/enabled.png
Binary file modified forui/test/golden/radio/zinc-light/focused.png
Binary file modified forui/test/golden/radio/zinc-light/label-disabled-checked.png
Binary file modified forui/test/golden/radio/zinc-light/label-disabled-error.png
Binary file modified forui/test/golden/radio/zinc-light/label-disabled.png
Binary file modified forui/test/golden/radio/zinc-light/label-enabled-checked-error.png
Binary file modified forui/test/golden/radio/zinc-light/label-enabled-checked.png
Binary file modified forui/test/golden/radio/zinc-light/label-enabled-error.png
Binary file modified forui/test/golden/radio/zinc-light/label-enabled.png
Binary file modified forui/test/golden/select-group/zinc-dark/checkbox-error.png
Binary file modified forui/test/golden/select-group/zinc-dark/checkbox.png
Binary file modified forui/test/golden/select-group/zinc-dark/radio-error.png
Binary file modified forui/test/golden/select-group/zinc-dark/radio.png
Binary file modified forui/test/golden/select-group/zinc-light/checkbox-error.png
Binary file modified forui/test/golden/select-group/zinc-light/checkbox.png
Binary file modified forui/test/golden/select-group/zinc-light/radio-error.png
Binary file modified forui/test/golden/select-group/zinc-light/radio.png
Binary file modified forui/test/golden/switch/zinc-dark/checked-disabled.png
Binary file modified forui/test/golden/switch/zinc-dark/checked-error.png
Binary file modified forui/test/golden/switch/zinc-dark/checked-focused.png
Binary file modified forui/test/golden/switch/zinc-dark/checked-unfocused.png
Binary file modified forui/test/golden/switch/zinc-dark/unchecked-disabled.png
Binary file modified forui/test/golden/switch/zinc-dark/unchecked-error.png
Binary file modified forui/test/golden/switch/zinc-dark/unchecked-focused.png
Binary file modified forui/test/golden/switch/zinc-dark/unchecked-unfocused.png
Binary file modified forui/test/golden/switch/zinc-light/checked-disabled.png
Binary file modified forui/test/golden/switch/zinc-light/checked-error.png
Binary file modified forui/test/golden/switch/zinc-light/checked-focused.png
Binary file modified forui/test/golden/switch/zinc-light/checked-unfocused.png
Binary file modified forui/test/golden/switch/zinc-light/unchecked-disabled.png
Binary file modified forui/test/golden/switch/zinc-light/unchecked-error.png
Binary file modified forui/test/golden/switch/zinc-light/unchecked-focused.png
Binary file modified forui/test/golden/switch/zinc-light/unchecked-unfocused.png
Binary file modified forui/test/golden/tile/tile/prioritize-details.png

0 comments on commit 8ea80ef

Please sign in to comment.