Skip to content

Commit ae45fd0

Browse files
Tayebsed93Thelm76Mateo MARTINEZ
authored
feat: create component button (#45)(#74)
* chore: add components_button image * chore: add components screen * refactor: theme mode passed via InheritedWidget * chore: temporarily add chips component * chore: temporarily add list switch component * chore: temporarily add sheets bottom component * chore: temporarily add switch icon utilities * feat: add customization bottom sheet * feat: add demo button * refactor: update oudsbutton component * feat: add localization key for button * refactor: add button layout and enabled state * fix: change bottom sheet color * fix: resolve color issue with Orange Country theme * chore: expose onColoredSurface bool in OudsTheme * chore: updated OudsButton and added modifiers * feat: added OudsColoredBox component * chore: increment build version for new release * refactor: optimize button modifiers * chore: add textfield in button customization * chore: error handling for specific button behavior * refactor: state button customization * refactor: rename enum button * chore: add code and refactor button on demo screen * chore: use dart workspaces (#78) Co-authored-by: Mateo MARTINEZ <[email protected]> * fix: update after upgrading to SDK version ^3.5.0 * chore: added Oswald font to the white label theme * chore: added RobotoMono font * refactor: enum name and deleted layout parameter * chore: add CHANGELOG in new entry * refactor: replace localization by context.l10n * fix: replace size value with tokens * refactor: delete unused theme mode * refactor: replace InheritedWidget with model * fix: use isDarkTheme to determine ThemeData * refactor: change api OudsListSwitch * chore: add animation code display * chore: add build number 52 * review : customize layout items order * review : text in the button should be centered * review: remove the transition or visual effect * chore: increment build version 53 * chore: add assets theme-system solaris * chore: increment build number 54 * chore: update orange material color * fix: ios structure * chore: add l10n localization in ouds_core * chore: add semantics button, cards, sheets bottom * chore: add semantics to selector and mode theme * chore: add accessibility copy code * chore: increment build number 59 * fix: ios provisioning profile to certificate alpha * chore : increment build number 60 * fix: ios team alpha release * chore: increment build number 61 * fix: ios team alpha release --------- Co-authored-by: Mateo M. <[email protected]> Co-authored-by: Mateo MARTINEZ <[email protected]>
1 parent 672834f commit ae45fd0

File tree

94 files changed

+4228
-633
lines changed

Some content is hidden

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

94 files changed

+4228
-633
lines changed

app/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Added
1010

11+
- [DemoApp] Create component - Button ([#45](https://github.com/Orange-OpenSource/ouds-flutter/issues/45))
1112
- [DemoApp] About page correct spacing and add flutter label ([#80](https://github.com/Orange-OpenSource/ouds-flutter/issues/80))
1213
- [DemoApp] Update Flutter SDK to v3.6.0 ([#81](https://github.com/Orange-OpenSource/ouds-flutter/issues/81))
1314
- [Library] Fix workflow to use dart doc ([#75](https://github.com/Orange-OpenSource/ouds-flutter/issues/75))

app/NOTICE.txt

+21-1
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,34 @@ in whole or part of, in any medium, except as required for reasonable and custom
88
and reproducing the content of the NOTICE and DOCUMENTATION files.
99
Any use or displaying shall constitute an infringement under intellectual property laws of France and international conventions.
1010

11+
ouds-flutter/app/assets/1.5x/ic_theme-system.png
1112
ouds-flutter/app/assets/1.5x/ic_palette.png
13+
ouds-flutter/app/assets/1.5x/il_components_button.png
14+
ouds-flutter/app/assets/1.5x/il_components_button_dark.png
15+
ouds-flutter/app/assets/1.5x/ic_copy.png
1216

17+
ouds-flutter/app/assets/2.0x/ic_theme-system.png
1318
ouds-flutter/app/assets/2.0x/ic_palette.png
19+
ouds-flutter/app/assets/2.0x/il_components_button.png
20+
ouds-flutter/app/assets/2.0x/il_components_button_dark.png
21+
ouds-flutter/app/assets/2.0x/ic_copy.png
1422

23+
ouds-flutter/app/assets/3.0x/ic_theme-system.png
1524
ouds-flutter/app/assets/3.0x/ic_palette.png
25+
ouds-flutter/app/assets/3.0x/il_components_button.png
26+
ouds-flutter/app/assets/3.0x/il_components_button_dark.png
27+
ouds-flutter/app/assets/3.0x/ic_copy.png
1628

29+
ouds-flutter/app/assets/4.0x/ic_theme-system.png
1730
ouds-flutter/app/assets/4.0x/ic_palette.png
18-
31+
ouds-flutter/app/assets/4.0x/il_components_button.png
32+
ouds-flutter/app/assets/4.0x/il_components_button_dark.png
33+
ouds-flutter/app/assets/4.0x/ic_copy.png
34+
35+
ouds-flutter/app/assets/ic_theme-system.png
36+
ouds-flutter/app/assets/ic_copy.png
37+
ouds-flutter/app/assets/il_components_button_dark.png
38+
ouds-flutter/app/assets/il_components_button.png
1939
ouds-flutter/app/assets/ic_palette.png
2040
ouds-flutter/app/assets/ic_about.svg
2141
ouds-flutter/app/assets/ic_atom.svg

app/android/gradle/wrapper/gradle-wrapper.properties

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
36
zipStoreBase=GRADLE_USER_HOME
47
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip

app/assets/1.5x/ic_copy.png

332 Bytes
Loading

app/assets/1.5x/ic_theme-system.png

470 Bytes
Loading
1.98 KB
Loading
2.33 KB
Loading

app/assets/2.0x/ic_copy.png

344 Bytes
Loading

app/assets/2.0x/ic_theme-system.png

925 Bytes
Loading
2.78 KB
Loading
3.16 KB
Loading

app/assets/3.0x/ic_copy.png

476 Bytes
Loading

app/assets/3.0x/ic_theme-system.png

1.37 KB
Loading
4.75 KB
Loading
5.39 KB
Loading

app/assets/4.0x/ic_copy.png

578 Bytes
Loading

app/assets/4.0x/ic_theme-system.png

1.8 KB
Loading
7.21 KB
Loading
7.95 KB
Loading

app/assets/ic_copy.png

578 Bytes
Loading

app/assets/ic_theme-system.png

1.8 KB
Loading

app/assets/il_components_button.png

7.21 KB
Loading
7.95 KB
Loading

app/fonts/RobotoMono.ttf

180 KB
Binary file not shown.

app/ios/Podfile.lock

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
PODS:
22
- Flutter (1.0.0)
3+
- package_info_plus (0.4.5):
4+
- Flutter
35
- url_launcher_ios (0.0.1):
46
- Flutter
57
- webview_flutter_wkwebview (0.0.1):
@@ -8,21 +10,25 @@ PODS:
810

911
DEPENDENCIES:
1012
- Flutter (from `Flutter`)
13+
- package_info_plus (from `.symlinks/plugins/package_info_plus/ios`)
1114
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
1215
- webview_flutter_wkwebview (from `.symlinks/plugins/webview_flutter_wkwebview/darwin`)
1316

1417
EXTERNAL SOURCES:
1518
Flutter:
1619
:path: Flutter
20+
package_info_plus:
21+
:path: ".symlinks/plugins/package_info_plus/ios"
1722
url_launcher_ios:
1823
:path: ".symlinks/plugins/url_launcher_ios/ios"
1924
webview_flutter_wkwebview:
2025
:path: ".symlinks/plugins/webview_flutter_wkwebview/darwin"
2126

2227
SPEC CHECKSUMS:
2328
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
29+
package_info_plus: af8e2ca6888548050f16fa2f1938db7b5a5df499
2430
url_launcher_ios: 694010445543906933d732453a59da0a173ae33d
25-
webview_flutter_wkwebview: 44d4dee7d7056d5ad185d25b38404436d56c547c
31+
webview_flutter_wkwebview: 1821ceac936eba6f7984d89a9f3bcb4dea99ebb2
2632

2733
PODFILE CHECKSUM: 819463e6a0290f5a72f145ba7cde16e8b6ef0796
2834

app/ios/Runner.xcodeproj/project.pbxproj

+5-1
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,10 @@
662662
ASSETCATALOG_COMPILER_APPICON_NAME = AppIconAlpha;
663663
CLANG_ENABLE_MODULES = YES;
664664
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
665+
CODE_SIGN_IDENTITY = "Apple Development";
666+
CODE_SIGN_STYLE = Automatic;
665667
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
666-
DEVELOPMENT_TEAM = B9YP84K776;
668+
DEVELOPMENT_TEAM = MG2LSJNJB6;
667669
ENABLE_BITCODE = NO;
668670
INFOPLIST_FILE = Runner/Info.plist;
669671
LD_RUNPATH_SEARCH_PATHS = (
@@ -672,6 +674,7 @@
672674
);
673675
PRODUCT_BUNDLE_IDENTIFIER = com.orange.ouds.alpha.flutterapp;
674676
PRODUCT_NAME = "$(TARGET_NAME)";
677+
PROVISIONING_PROFILE_SPECIFIER = "";
675678
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
676679
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
677680
SWIFT_VERSION = 5.0;
@@ -758,6 +761,7 @@
758761
ASSETCATALOG_COMPILER_APPICON_NAME = AppIconAlpha;
759762
CLANG_ENABLE_MODULES = YES;
760763
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
764+
CODE_SIGN_IDENTITY = "Apple Development";
761765
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
762766
CODE_SIGN_STYLE = Manual;
763767
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+8-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3+
<device id="retina6_12" orientation="portrait" appearance="light"/>
34
<dependencies>
45
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
7+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
68
</dependencies>
79
<scenes>
810
<!--Flutter View Controller-->
@@ -14,13 +16,14 @@
1416
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
1517
</layoutGuides>
1618
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
17-
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
19+
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
1820
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
21+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2022
</view>
2123
</viewController>
2224
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
2325
</objects>
26+
<point key="canvasLocation" x="-17" y="-40"/>
2427
</scene>
2528
</scenes>
2629
</document>

app/l10n.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ arb-dir: lib/l10n
22
template-arb-file: ouds_flutter_en.arb
33
output-dir: lib/l10n/gen/
44
output-localization-file: ouds_flutter_app_localizations.dart
5-
5+
synthetic-package: false
66
# Uncomment this line to find errors in l10n generation
7-
#untranslated-messages-file: l10n_errors.txt
7+
#untranslated-messages-file: l10n_errors.txt
8+

app/lib/l10n/app_localizations.dart

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import 'package:flutter/widgets.dart';
2+
import 'package:ouds_flutter_demo/l10n/gen/ouds_flutter_app_localizations.dart';
3+
4+
export 'package:ouds_flutter_demo/l10n/gen/ouds_flutter_app_localizations.dart';
5+
6+
extension L10nExtension on BuildContext {
7+
AppLocalizations get l10n => AppLocalizations.of(this)!;
8+
}

0 commit comments

Comments
 (0)