Skip to content

Commit 4b0257c

Browse files
boosted-botAhmedAmineZrnouha06
authored
feat(🤖): update tokens version 2.4.0 (#726)
* chore: update tokens * chore: update tokens with version 2.4.0 * chore: update tokens with version 2.4.0 * chore: update version components * chore(version): prepare version 2.0.0 (#747) Prepare version v2.0.0 (#747) * chore(version): prepare new version 2.0.0 --------- Co-authored-by: boosted-bot <boosted-bot@users.noreply.github.com> Co-authored-by: Ahmed Amine Zribi <ahmedamine.zribi@sofrecom.com> Co-authored-by: nhammami <nouha.hammami@sofrecom.com>
1 parent 408331f commit 4b0257c

223 files changed

Lines changed: 2753 additions & 1286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
## [Unreleased](https://github.com/Orange-OpenSource/ouds-flutter/compare/1.3.1...develop)
88
### Added
99
### Changed
10+
- [DemoApp][Library] update tokens 2.4.0 ([#726](https://github.com/Orange-OpenSource/ouds-flutter/issues/726))
11+
1012
### Fixed
1113

1214
## [1.3.1](https://github.com/Orange-OpenSource/ouds-flutter/compare/1.3.0...1.3.1) - 2026-05-14

app/lib/ui/components/chip/chip_filter_demo_sreen.dart

Lines changed: 37 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import 'package:provider/provider.dart';
3737
class ChipFilterDemoScreen extends StatefulWidget {
3838
final String? previousPageTitle;
3939

40-
const ChipFilterDemoScreen({super.key,this.previousPageTitle});
40+
const ChipFilterDemoScreen({super.key, this.previousPageTitle});
4141

4242
@override
4343
State<StatefulWidget> createState() => _ChipFilterDemoScreenState();
@@ -59,7 +59,11 @@ class _ChipFilterDemoScreenState extends State<ChipFilterDemoScreen> {
5959
child: ChipCustomization(
6060
key: _scaffoldKey,
6161
child: Padding(
62-
padding: EdgeInsets.only(bottom: defaultTargetPlatform == TargetPlatform.android ? MediaQuery.of(context).viewPadding.bottom : OudsTheme.of(context).spaceScheme(context).paddingBlockNone),
62+
padding: EdgeInsets.only(
63+
bottom: defaultTargetPlatform == TargetPlatform.android
64+
? MediaQuery.of(context).viewPadding.bottom
65+
: OudsTheme.of(context).spaceScheme(context).paddingBlockNone,
66+
),
6367
child: Scaffold(
6468
bottomSheet: OudsSheetsBottom(
6569
onExpansionChanged: _onExpansionChanged,
@@ -70,7 +74,8 @@ class _ChipFilterDemoScreenState extends State<ChipFilterDemoScreen> {
7074
appBar: MainAppBar(
7175
title: context.l10n.app_components_filterChip_label,
7276
showBackButton: true,
73-
previousPageTitle: widget.previousPageTitle,),
77+
previousPageTitle: widget.previousPageTitle,
78+
),
7479
body: ExcludeSemantics(
7580
excluding: !_isBottomSheetExpanded,
7681
child: _Body(),
@@ -93,19 +98,24 @@ class _Body extends StatefulWidget {
9398
class _BodyState extends State<_Body> {
9499
@override
95100
Widget build(BuildContext context) {
96-
ThemeController? themeController = Provider.of<ThemeController>(context, listen: false);
101+
ThemeController? themeController = Provider.of<ThemeController>(
102+
context,
103+
listen: false,
104+
);
97105
return DetailScreenDescription(
98106
description: context.l10n.app_components_chip_filterChip_description_text,
99107
widget: Column(
100108
children: [
101109
_ChipFilterDemo(),
102-
SizedBox(height: themeController.currentTheme.spaceScheme(context).fixedMedium),
103-
Code(
104-
code: ChipFilterCodeGenerator.updateCode(context),
110+
SizedBox(
111+
height: themeController.currentTheme
112+
.spaceScheme(context)
113+
.fixedMedium,
105114
),
115+
Code(code: ChipFilterCodeGenerator.updateCode(context)),
106116
ReferenceDesignVersionComponent(
107-
version: OudsComponentVersion.chip,
108-
)
117+
version: OudsComponentVersion.filterChip,
118+
),
109119
],
110120
),
111121
);
@@ -134,18 +144,20 @@ class _ChipFilterDemoState extends State<_ChipFilterDemo> {
134144

135145
return LightDarkBox(
136146
child: OudsFilterChip(
137-
label: ChipCustomizationUtils.getText(customizationState),
138-
avatar: ChipCustomizationUtils.getIcon(customizationState, themeController!),
139-
selected: customizationState?.hasSelected,
140-
onSelected: customizationState?.hasEnabled == true
141-
? (newValue) {
142-
setState(
143-
() {
144-
customizationState?.hasSelected = newValue;
145-
},
146-
);
147-
}
148-
: null),
147+
label: ChipCustomizationUtils.getText(customizationState),
148+
avatar: ChipCustomizationUtils.getIcon(
149+
customizationState,
150+
themeController!,
151+
),
152+
selected: customizationState?.hasSelected,
153+
onSelected: customizationState?.hasEnabled == true
154+
? (newValue) {
155+
setState(() {
156+
customizationState?.hasSelected = newValue;
157+
});
158+
}
159+
: null,
160+
),
149161
);
150162
}
151163
}
@@ -176,7 +188,9 @@ class _CustomizationContentState extends State<_CustomizationContent> {
176188

177189
@override
178190
Widget build(BuildContext context) {
179-
final ChipCustomizationState? customizationState = ChipCustomization.of(context);
191+
final ChipCustomizationState? customizationState = ChipCustomization.of(
192+
context,
193+
);
180194

181195
return CustomizableSection(
182196
children: [
@@ -212,7 +226,7 @@ class _CustomizationContentState extends State<_CustomizationContent> {
212226
text: customizationState.labelText,
213227
focusNode: labelFocus,
214228
fieldType: FieldType.label,
215-
)
229+
),
216230
],
217231
);
218232
}

app/lib/ui/components/chip/chip_suggestion_demo_screen.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ class _BodyState extends State<_Body> {
113113
.fixedMedium,
114114
),
115115
Code(code: ChipSuggestionCodeGenerator.updateCode(context)),
116-
ReferenceDesignVersionComponent(version: OudsComponentVersion.chip),
116+
ReferenceDesignVersionComponent(
117+
version: OudsComponentVersion.suggestionChip,
118+
),
117119
],
118120
),
119121
);

app/lib/ui/components/tag/input_tag_demo_screen.dart

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import 'package:provider/provider.dart';
3333
class InputTagDemoScreen extends StatefulWidget {
3434
final String? previousPageTitle;
3535

36-
const InputTagDemoScreen({super.key,this.previousPageTitle});
36+
const InputTagDemoScreen({super.key, this.previousPageTitle});
3737

3838
@override
3939
State<StatefulWidget> createState() => _InputTagDemoScreenState();
@@ -53,7 +53,11 @@ class _InputTagDemoScreenState extends State<InputTagDemoScreen> {
5353
Widget build(BuildContext context) {
5454
return TagCustomization(
5555
child: Padding(
56-
padding: EdgeInsets.only(bottom: defaultTargetPlatform == TargetPlatform.android ? MediaQuery.of(context).viewPadding.bottom : OudsTheme.of(context).spaceScheme(context).paddingBlockNone),
56+
padding: EdgeInsets.only(
57+
bottom: defaultTargetPlatform == TargetPlatform.android
58+
? MediaQuery.of(context).viewPadding.bottom
59+
: OudsTheme.of(context).spaceScheme(context).paddingBlockNone,
60+
),
5761
child: Scaffold(
5862
bottomSheet: OudsSheetsBottom(
5963
onExpansionChanged: _onExpansionChanged,
@@ -63,11 +67,14 @@ class _InputTagDemoScreenState extends State<InputTagDemoScreen> {
6367
key: _scaffoldKey,
6468
extendBodyBehindAppBar: true,
6569
appBar: MainAppBar(
66-
showBackButton: true,
67-
title: context.l10n.app_components_tag_inputTag_label,
68-
previousPageTitle: widget.previousPageTitle,
70+
showBackButton: true,
71+
title: context.l10n.app_components_tag_inputTag_label,
72+
previousPageTitle: widget.previousPageTitle,
73+
),
74+
body: ExcludeSemantics(
75+
excluding: !_isBottomSheetExpanded,
76+
child: _Body(),
6977
),
70-
body: ExcludeSemantics(excluding: !_isBottomSheetExpanded, child: _Body()),
7178
),
7279
),
7380
);
@@ -85,19 +92,24 @@ class _Body extends StatefulWidget {
8592
class _BodyState extends State<_Body> {
8693
@override
8794
Widget build(BuildContext context) {
88-
ThemeController? themeController = Provider.of<ThemeController>(context, listen: false);
95+
ThemeController? themeController = Provider.of<ThemeController>(
96+
context,
97+
listen: false,
98+
);
8999
return DetailScreenDescription(
90100
description: context.l10n.app_components_inputTag_description_text,
91101
widget: Column(
92102
children: [
93103
_InputTagDemo(),
94-
SizedBox(height: themeController.currentTheme.spaceScheme(context).fixedMedium),
95-
Code(
96-
code: InputTagCodeGenerator.updateCode(context),
104+
SizedBox(
105+
height: themeController.currentTheme
106+
.spaceScheme(context)
107+
.fixedMedium,
97108
),
109+
Code(code: InputTagCodeGenerator.updateCode(context)),
98110
ReferenceDesignVersionComponent(
99-
version: OudsComponentVersion.tag,
100-
)
111+
version: OudsComponentVersion.inputTag,
112+
),
101113
],
102114
),
103115
);
@@ -146,7 +158,9 @@ class _CustomizationContentState extends State<_CustomizationContent> {
146158

147159
@override
148160
Widget build(BuildContext context) {
149-
final TagCustomizationState? customizationState = TagCustomization.of(context);
161+
final TagCustomizationState? customizationState = TagCustomization.of(
162+
context,
163+
);
150164
final labelFocus = FocusNode();
151165

152166
return CustomizableSection(
@@ -163,8 +177,8 @@ class _CustomizationContentState extends State<_CustomizationContent> {
163177
text: customizationState.labelText,
164178
focusNode: labelFocus,
165179
fieldType: FieldType.label,
166-
)
180+
),
167181
],
168182
);
169183
}
170-
}
184+
}

0 commit comments

Comments
 (0)