Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

361 documentation check #377

Merged
merged 2 commits into from
May 12, 2024
Merged
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
2 changes: 1 addition & 1 deletion app/lib/ui/components/cards/card_horizontal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class _Body extends StatelessWidget {
child: SingleChildScrollView(
child: OdsHorizontalCard(
image: OdsCardImage(
imageProvider: NetworkImage(recipe.url),
image: NetworkImage(recipe.url),
contentDescription: '', //Optional
alignment: Alignment.center,
contentScale: BoxFit.cover,
Expand Down
4 changes: 2 additions & 2 deletions app/lib/ui/components/cards/card_small.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ class _Body extends StatelessWidget {
? recipe.subtitle
: null,
image: OdsCardImage(
imageProvider: NetworkImage(recipe.url),
image: NetworkImage(recipe.url),
contentDescription: '', //Optional
alignment: Alignment.center,
contentScale: BoxFit.cover,
),
onTap: customizationState!.clickable ? () {} : null,
onClick: customizationState!.clickable ? () {} : null,
),
],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class _Body extends StatelessWidget {
customizationState.hasSubtitle == true ? recipe.subtitle : null,
text: customizationState.hasText == true ? recipe.description : null,
image: OdsCardImage(
imageProvider: NetworkImage(recipe.url),
image: recipe.url,
contentDescription: '', //Optional
alignment: Alignment.center,
contentScale: BoxFit.cover,
Expand Down
2 changes: 1 addition & 1 deletion app/lib/ui/components/cards/card_vertical_image_first.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class _Body extends StatelessWidget {
top: spacingM, bottom: 91, left: spacingM, right: spacingM),
child: OdsVerticalImageFirstCard(
image: OdsCardImage(
imageProvider: NetworkImage(recipe.url),
image: recipe.url,
contentDescription: '', //Optional
alignment: Alignment.center,
contentScale: BoxFit.cover,
Expand Down
8 changes: 5 additions & 3 deletions app/lib/ui/components/checkboxes/checkboxes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ class __BodyState extends State<_Body> {
customizationState?.hasEnabled == true ? isEnable : false,
indeterminate: true,
onCheckedChange: (value) {
setState(() {
isChecked = value;
});
setState(
() {
isChecked = value;
},
);
},
),
),
Expand Down
2 changes: 1 addition & 1 deletion app/lib/ui/components/components_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ComponentsScreen extends StatelessWidget {
title: component.title,
image: displayImage(
component.imageResourceName, double.infinity),
onTap: () {
onClick: () {
Get.to(
ComponentDetailScreen(
component: component,
Expand Down
2 changes: 1 addition & 1 deletion app/lib/ui/guidelines/guidelines_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class GuidelinesScreen extends StatelessWidget {
OdsVerticalImageFirstCard(
title: guideline.title,
image: OdsCardImage(
imageProvider: AssetImage(guideline.imageResourceName),
image: guideline.imageResourceName,
contentDescription: '', //Optional
alignment: Alignment.center,
contentScale: BoxFit.cover,
Expand Down
2 changes: 1 addition & 1 deletion app/lib/ui/modules/modules_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ModulesScreen extends StatelessWidget {
OdsVerticalImageFirstCard(
title: module.title,
image: OdsCardImage(
imageProvider: AssetImage(module.imageResourceName),
image: module.imageResourceName,
contentDescription: '', //Optional
alignment: Alignment.center,
contentScale: BoxFit.cover,
Expand Down
148 changes: 122 additions & 26 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
url: "https://pub.dev"
source: hosted
version: "1.17.1"
version: "1.18.0"
convert:
dependency: transitive
description:
Expand Down Expand Up @@ -209,10 +209,10 @@ packages:
dependency: "direct main"
description:
name: intl
sha256: a3715e3bc90294e971cb7dc063fbf3cd9ee0ebf8604ffeafabd9e6f16abbdbe6
sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
url: "https://pub.dev"
source: hosted
version: "0.18.0"
version: "0.18.1"
intl_translation:
dependency: transitive
description:
Expand All @@ -221,14 +221,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.18.2"
js:
leak_tracker:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
name: leak_tracker
sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
url: "https://pub.dev"
source: hosted
version: "0.6.7"
version: "10.0.0"
leak_tracker_flutter_testing:
dependency: transitive
description:
name: leak_tracker_flutter_testing
sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
url: "https://pub.dev"
source: hosted
version: "2.0.1"
leak_tracker_testing:
dependency: transitive
description:
name: leak_tracker_testing
sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
url: "https://pub.dev"
source: hosted
version: "2.0.1"
lints:
dependency: transitive
description:
Expand All @@ -249,26 +265,26 @@ packages:
dependency: transitive
description:
name: matcher
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
url: "https://pub.dev"
source: hosted
version: "0.12.15"
version: "0.12.16+1"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
url: "https://pub.dev"
source: hosted
version: "0.2.0"
version: "0.8.0"
meta:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.11.0"
nested:
dependency: transitive
description:
Expand Down Expand Up @@ -312,10 +328,10 @@ packages:
dependency: transitive
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
url: "https://pub.dev"
source: hosted
version: "1.8.3"
version: "1.9.0"
path_parsing:
dependency: transitive
description:
Expand Down Expand Up @@ -477,26 +493,26 @@ packages:
dependency: transitive
description:
name: source_span
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
stack_trace:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.1.2"
string_scanner:
dependency: transitive
description:
Expand All @@ -517,10 +533,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
version: "0.6.1"
typed_data:
dependency: transitive
description:
Expand All @@ -529,6 +545,70 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.2"
url_launcher:
dependency: "direct main"
description:
name: url_launcher
sha256: "6ce1e04375be4eed30548f10a315826fd933c1e493206eab82eed01f438c8d2e"
url: "https://pub.dev"
source: hosted
version: "6.2.6"
url_launcher_android:
dependency: transitive
description:
name: url_launcher_android
sha256: "360a6ed2027f18b73c8d98e159dda67a61b7f2e0f6ec26e86c3ada33b0621775"
url: "https://pub.dev"
source: hosted
version: "6.3.1"
url_launcher_ios:
dependency: transitive
description:
name: url_launcher_ios
sha256: "9149d493b075ed740901f3ee844a38a00b33116c7c5c10d7fb27df8987fb51d5"
url: "https://pub.dev"
source: hosted
version: "6.2.5"
url_launcher_linux:
dependency: transitive
description:
name: url_launcher_linux
sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811
url: "https://pub.dev"
source: hosted
version: "3.1.1"
url_launcher_macos:
dependency: transitive
description:
name: url_launcher_macos
sha256: b7244901ea3cf489c5335bdacda07264a6e960b1c1b1a9f91e4bc371d9e68234
url: "https://pub.dev"
source: hosted
version: "3.1.0"
url_launcher_platform_interface:
dependency: transitive
description:
name: url_launcher_platform_interface
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
url: "https://pub.dev"
source: hosted
version: "2.3.2"
url_launcher_web:
dependency: transitive
description:
name: url_launcher_web
sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a"
url: "https://pub.dev"
source: hosted
version: "2.3.1"
url_launcher_windows:
dependency: transitive
description:
name: url_launcher_windows
sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7
url: "https://pub.dev"
source: hosted
version: "3.1.1"
vector_graphics:
dependency: transitive
description:
Expand Down Expand Up @@ -561,6 +641,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
vm_service:
dependency: transitive
description:
name: vm_service
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
url: "https://pub.dev"
source: hosted
version: "13.0.0"
watcher:
dependency: transitive
description:
Expand All @@ -569,6 +657,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.1.0"
web:
dependency: transitive
description:
name: web
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
webview_flutter:
dependency: "direct main"
description:
Expand Down Expand Up @@ -634,5 +730,5 @@ packages:
source: hosted
version: "3.1.2"
sdks:
dart: ">=3.0.0 <4.0.0"
flutter: ">=3.10.0"
dart: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
19 changes: 19 additions & 0 deletions docs/0.4.0/home_content.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,22 @@ Now in your Dart code, you can use:
```dart
import 'package:ods_flutter/ods_flutter.dart';
```

### Add the OdsTheme

This is the theme of your application.
To share a Theme across your entire app, set the theme property to your MaterialApp constructor :

```dart
return MaterialApp(
title: 'Application name',
theme: OdsTheme.lightTheme,
darkTheme: OdsTheme.darkTheme,
debugShowCheckedModeBanner: false,
home: const MyHomePage(title: 'Flutter Home Page'),
// Localization setup
localizationsDelegates: const [
OdsLocalizations.delegate,
],
);
```
Binary file added docs/0.5.0/.DS_Store
Binary file not shown.
Loading
Loading