Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/dartdoc-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
uses: ./.github/actions/setup

- name: Setup Pages
if: github.event_name != 'pull_request'
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0

- name: Setup Ruby
Expand Down Expand Up @@ -129,6 +130,7 @@ jobs:

# Upload as GitHub Pages artifact (creates a tar archive named "github-pages")
- name: Upload artifact
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: ./docs
Expand All @@ -152,6 +154,7 @@ jobs:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
permissions:
contents: write
pages: write
Expand Down
8 changes: 8 additions & 0 deletions app/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased](https://github.com/Orange-OpenSource/ouds-flutter/compare/1.3.1...develop)
### Added
### Changed
- [Library] update `Phone number input` component to v1.3 ([#690](https://github.com/Orange-OpenSource/ouds-flutter/issues/690))
- [Library] update `tag` component to v1.5 ([#694](https://github.com/Orange-OpenSource/ouds-flutter/issues/694))
- [Library] update `input tag` component to v1.2 ([#695](https://github.com/Orange-OpenSource/ouds-flutter/issues/695))
- [DemoApp][Library] update tokens 2.5.0 ([#778](https://github.com/Orange-OpenSource/ouds-flutter/issues/778))
- [DemoApp][Library] update tokens 2.4.0 ([#726](https://github.com/Orange-OpenSource/ouds-flutter/issues/726))

### Fixed
- [Library] `Phone number input` Add a hint to explain how to interact with fields ([#571](https://github.com/Orange-OpenSource/ouds-flutter/issues/571))
- [Library] `input tag` the whole component should have the role button ([#481](https://github.com/Orange-OpenSource/ouds-flutter/issues/481))

## [1.3.1](https://github.com/Orange-OpenSource/ouds-flutter/compare/1.3.0...1.3.1) - 2026-05-14
### Added
Expand Down
2 changes: 1 addition & 1 deletion app/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '2.1.0'
ext.kotlin_version = '2.2.20'
repositories {
google()
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion app/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version '8.9.1' apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
id "org.jetbrains.kotlin.android" version "2.2.20" apply false
}

include ":app"
60 changes: 37 additions & 23 deletions app/lib/ui/components/chip/chip_filter_demo_sreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import 'package:provider/provider.dart';
class ChipFilterDemoScreen extends StatefulWidget {
final String? previousPageTitle;

const ChipFilterDemoScreen({super.key,this.previousPageTitle});
const ChipFilterDemoScreen({super.key, this.previousPageTitle});

@override
State<StatefulWidget> createState() => _ChipFilterDemoScreenState();
Expand All @@ -59,7 +59,11 @@ class _ChipFilterDemoScreenState extends State<ChipFilterDemoScreen> {
child: ChipCustomization(
key: _scaffoldKey,
child: Padding(
padding: EdgeInsets.only(bottom: defaultTargetPlatform == TargetPlatform.android ? MediaQuery.of(context).viewPadding.bottom : OudsTheme.of(context).spaceScheme(context).paddingBlockNone),
padding: EdgeInsets.only(
bottom: defaultTargetPlatform == TargetPlatform.android
? MediaQuery.of(context).viewPadding.bottom
: OudsTheme.of(context).spaceScheme(context).paddingBlockNone,
),
child: Scaffold(
bottomSheet: OudsSheetsBottom(
onExpansionChanged: _onExpansionChanged,
Expand All @@ -70,7 +74,8 @@ class _ChipFilterDemoScreenState extends State<ChipFilterDemoScreen> {
appBar: MainAppBar(
title: context.l10n.app_components_filterChip_label,
showBackButton: true,
previousPageTitle: widget.previousPageTitle,),
previousPageTitle: widget.previousPageTitle,
),
body: ExcludeSemantics(
excluding: !_isBottomSheetExpanded,
child: _Body(),
Expand All @@ -93,19 +98,24 @@ class _Body extends StatefulWidget {
class _BodyState extends State<_Body> {
@override
Widget build(BuildContext context) {
ThemeController? themeController = Provider.of<ThemeController>(context, listen: false);
ThemeController? themeController = Provider.of<ThemeController>(
context,
listen: false,
);
return DetailScreenDescription(
description: context.l10n.app_components_chip_filterChip_description_text,
widget: Column(
children: [
_ChipFilterDemo(),
SizedBox(height: themeController.currentTheme.spaceScheme(context).fixedMedium),
Code(
code: ChipFilterCodeGenerator.updateCode(context),
SizedBox(
height: themeController.currentTheme
.spaceScheme(context)
.fixedMedium,
),
Code(code: ChipFilterCodeGenerator.updateCode(context)),
ReferenceDesignVersionComponent(
version: OudsComponentVersion.chip,
)
version: OudsComponentVersion.filterChip,
),
],
),
);
Expand Down Expand Up @@ -134,18 +144,20 @@ class _ChipFilterDemoState extends State<_ChipFilterDemo> {

return LightDarkBox(
child: OudsFilterChip(
label: ChipCustomizationUtils.getText(customizationState),
avatar: ChipCustomizationUtils.getIcon(customizationState, themeController!),
selected: customizationState?.hasSelected,
onSelected: customizationState?.hasEnabled == true
? (newValue) {
setState(
() {
customizationState?.hasSelected = newValue;
},
);
}
: null),
label: ChipCustomizationUtils.getText(customizationState),
avatar: ChipCustomizationUtils.getIcon(
customizationState,
themeController!,
),
selected: customizationState?.hasSelected,
onSelected: customizationState?.hasEnabled == true
? (newValue) {
setState(() {
customizationState?.hasSelected = newValue;
});
}
: null,
),
);
}
}
Expand Down Expand Up @@ -176,7 +188,9 @@ class _CustomizationContentState extends State<_CustomizationContent> {

@override
Widget build(BuildContext context) {
final ChipCustomizationState? customizationState = ChipCustomization.of(context);
final ChipCustomizationState? customizationState = ChipCustomization.of(
context,
);

return CustomizableSection(
children: [
Expand Down Expand Up @@ -212,7 +226,7 @@ class _CustomizationContentState extends State<_CustomizationContent> {
text: customizationState.labelText,
focusNode: labelFocus,
fieldType: FieldType.label,
)
),
],
);
}
Expand Down
4 changes: 3 additions & 1 deletion app/lib/ui/components/chip/chip_suggestion_demo_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ class _BodyState extends State<_Body> {
.fixedMedium,
),
Code(code: ChipSuggestionCodeGenerator.updateCode(context)),
ReferenceDesignVersionComponent(version: OudsComponentVersion.chip),
ReferenceDesignVersionComponent(
version: OudsComponentVersion.suggestionChip,
),
],
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class _BodyState extends State<_Body> {
),
),
ReferenceDesignVersionComponent(
version: OudsComponentVersion.bar,
version: OudsComponentVersion.navigationBar,
)
],
),
Expand Down
44 changes: 29 additions & 15 deletions app/lib/ui/components/tag/input_tag_demo_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import 'package:provider/provider.dart';
class InputTagDemoScreen extends StatefulWidget {
final String? previousPageTitle;

const InputTagDemoScreen({super.key,this.previousPageTitle});
const InputTagDemoScreen({super.key, this.previousPageTitle});

@override
State<StatefulWidget> createState() => _InputTagDemoScreenState();
Expand All @@ -53,7 +53,11 @@ class _InputTagDemoScreenState extends State<InputTagDemoScreen> {
Widget build(BuildContext context) {
return TagCustomization(
child: Padding(
padding: EdgeInsets.only(bottom: defaultTargetPlatform == TargetPlatform.android ? MediaQuery.of(context).viewPadding.bottom : OudsTheme.of(context).spaceScheme(context).paddingBlockNone),
padding: EdgeInsets.only(
bottom: defaultTargetPlatform == TargetPlatform.android
? MediaQuery.of(context).viewPadding.bottom
: OudsTheme.of(context).spaceScheme(context).paddingBlockNone,
),
child: Scaffold(
bottomSheet: OudsSheetsBottom(
onExpansionChanged: _onExpansionChanged,
Expand All @@ -63,11 +67,14 @@ class _InputTagDemoScreenState extends State<InputTagDemoScreen> {
key: _scaffoldKey,
extendBodyBehindAppBar: true,
appBar: MainAppBar(
showBackButton: true,
title: context.l10n.app_components_tag_inputTag_label,
previousPageTitle: widget.previousPageTitle,
showBackButton: true,
title: context.l10n.app_components_tag_inputTag_label,
previousPageTitle: widget.previousPageTitle,
),
body: ExcludeSemantics(
excluding: !_isBottomSheetExpanded,
child: _Body(),
),
body: ExcludeSemantics(excluding: !_isBottomSheetExpanded, child: _Body()),
),
),
);
Expand All @@ -85,19 +92,24 @@ class _Body extends StatefulWidget {
class _BodyState extends State<_Body> {
@override
Widget build(BuildContext context) {
ThemeController? themeController = Provider.of<ThemeController>(context, listen: false);
ThemeController? themeController = Provider.of<ThemeController>(
context,
listen: false,
);
return DetailScreenDescription(
description: context.l10n.app_components_inputTag_description_text,
widget: Column(
children: [
_InputTagDemo(),
SizedBox(height: themeController.currentTheme.spaceScheme(context).fixedMedium),
Code(
code: InputTagCodeGenerator.updateCode(context),
SizedBox(
height: themeController.currentTheme
.spaceScheme(context)
.fixedMedium,
),
Code(code: InputTagCodeGenerator.updateCode(context)),
ReferenceDesignVersionComponent(
version: OudsComponentVersion.tag,
)
version: OudsComponentVersion.inputTag,
),
],
),
);
Expand Down Expand Up @@ -146,7 +158,9 @@ class _CustomizationContentState extends State<_CustomizationContent> {

@override
Widget build(BuildContext context) {
final TagCustomizationState? customizationState = TagCustomization.of(context);
final TagCustomizationState? customizationState = TagCustomization.of(
context,
);
final labelFocus = FocusNode();

return CustomizableSection(
Expand All @@ -163,8 +177,8 @@ class _CustomizationContentState extends State<_CustomizationContent> {
text: customizationState.labelText,
focusNode: labelFocus,
fieldType: FieldType.label,
)
),
],
);
}
}
}
2 changes: 1 addition & 1 deletion app/lib/ui/components/top_bar/top_bar_demo_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class _BodyState extends State<_Body> {
code: TopBarCodeGenerator.updateCode(context),
),
ReferenceDesignVersionComponent(
version: OudsComponentVersion.bar,
version: OudsComponentVersion.appBar,
)
],
),
Expand Down
Loading
Loading