Skip to content

Commit 34957f1

Browse files
Leptopodaprovokateurin
authored andcommitted
fix: fix various documentation errors
Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
1 parent 90d1279 commit 34957f1

File tree

11 files changed

+150
-8
lines changed

11 files changed

+150
-8
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
// ignore: unnecessary_library_directive
1+
/// Configuration for using `package:build`-compatible build systems.
2+
///
3+
/// See:
4+
/// * [build_runner](https://pub.dev/packages/build_runner)
5+
///
6+
/// This library is **not** intended to be imported by typical end-users unless
7+
/// you are creating a custom compilation pipeline. See documentation for
8+
/// details, and `build.yaml` for how these builders are configured by default.
29
library dynamite;
310

411
export 'src/openapi_builder.dart';

packages/neon/neon/lib/models.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/// The Neon model definitions.
2+
///
3+
/// To use, import `import 'package:neon/models.dart';`.
4+
///
5+
/// This library provides basic data models and interfaces to build a neon
6+
/// client.
7+
///
8+
/// {@canonicalFor label_builder.LabelBuilder}
9+
library models;
10+
111
export 'package:neon/src/models/account.dart' hide Credentials, LoginQRcode;
212
export 'package:neon/src/models/app_implementation.dart';
13+
export 'package:neon/src/models/label_builder.dart';
314
export 'package:neon/src/models/notifications_interface.dart';

packages/neon/neon/lib/src/models/app_implementation.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class AppImplementation<T extends Bloc, R extends NextcloudAppOptions>
3434
/// {@macro flutter.widgets.widgetsApp.localizationsDelegates}
3535
LocalizationsDelegate<Object> get localizationsDelegate;
3636

37-
/// {@macro flutter.widgets.widgetsApp.supportedLocales}
37+
/// The list of locales that this app has been localized for.
3838
Iterable<Locale> get supportedLocales;
3939

4040
/// Default localized app name used in [name].

packages/neon/neon/lib/src/widgets/image.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,9 @@ class NeonImageWrapper extends StatelessWidget {
420420
///
421421
/// If null defaults to `const BorderRadius.all(Radius.circular(8))`.
422422
///
423-
/// {@macro flutter.painting.BoxDecoration.clip}
423+
/// The shape or the [borderRadius] won't clip the children of the decorated [Container].
424+
/// If the clip is required, insert a clip widget (e.g., [ClipRect], [ClipRRect], [ClipPath])
425+
/// as the child of the [Container]. Be aware that clipping may be costly in terms of performance.
424426
final BorderRadius? borderRadius;
425427

426428
@override

packages/neon/neon_dashboard/lib/src/app.dart

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
/// The Neon client for the dashboard app.
2+
///
3+
/// Add `DashboardApp()` to your runNeon command to execute this app.
4+
///
5+
/// A basic implementation could look like:
6+
///```dart
7+
///Future<void> main() async {
8+
/// await runNeon(
9+
/// appImplementations: {
10+
/// DashboardApp()
11+
/// },
12+
/// theme: NeonTheme(
13+
/// branding: Branding(
14+
/// name: 'Dashboard',
15+
/// logo: VectorGraphic(
16+
/// loader: AssetBytesLoader(
17+
/// 'assets/logo.svg.vec',
18+
/// ),
19+
/// ),
20+
/// ),
21+
/// ),
22+
/// );
23+
/// }
24+
///```
25+
library dashboard;
26+
127
import 'package:flutter/material.dart';
228
import 'package:go_router/go_router.dart';
329
import 'package:neon/models.dart';

packages/neon/neon_files/lib/neon_files.dart

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
1-
library neon_files;
1+
/// The Neon client for the files app.
2+
///
3+
/// Add `FilesApp()` to your runNeon command to execute this app.
4+
///
5+
/// A basic implementation could look like:
6+
///```dart
7+
///Future<void> main() async {
8+
/// await runNeon(
9+
/// appImplementations: {
10+
/// FilesApp()
11+
/// },
12+
/// theme: NeonTheme(
13+
/// branding: Branding(
14+
/// name: 'Files',
15+
/// logo: VectorGraphic(
16+
/// loader: AssetBytesLoader(
17+
/// 'assets/logo.svg.vec',
18+
/// ),
19+
/// ),
20+
/// ),
21+
/// ),
22+
/// );
23+
/// }
24+
///```
25+
library files;
226

327
import 'dart:async';
428

packages/neon/neon_files/lib/utils/task.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sealed class FilesTask {
1313
@protected
1414
final streamController = StreamController<double>();
1515

16-
/// Task progress in percent [0, 1].
16+
/// Task progress in percent `[0, 1]`.
1717
late final progress = streamController.stream.asBroadcastStream();
1818
}
1919

packages/neon/neon_news/lib/neon_news.dart

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
1-
library neon_news;
1+
/// The Neon client for the news app.
2+
///
3+
/// Add `NewsApp()` to your runNeon command to execute this app.
4+
///
5+
/// A basic implementation could look like:
6+
///```dart
7+
///Future<void> main() async {
8+
/// await runNeon(
9+
/// appImplementations: {
10+
/// NewsApp()
11+
/// },
12+
/// theme: NeonTheme(
13+
/// branding: Branding(
14+
/// name: 'News',
15+
/// logo: VectorGraphic(
16+
/// loader: AssetBytesLoader(
17+
/// 'assets/logo.svg.vec',
18+
/// ),
19+
/// ),
20+
/// ),
21+
/// ),
22+
/// );
23+
/// }
24+
///```
25+
library news;
226

327
import 'dart:async';
428

packages/neon/neon_notes/lib/neon_notes.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/// The Neon client for the notes app.
2+
///
3+
/// Add `NotesApp()` to your runNeon command to execute this app.
4+
///
5+
/// A basic implementation could look like:
6+
///```dart
7+
///Future<void> main() async {
8+
/// await runNeon(
9+
/// appImplementations: {
10+
/// NotesApp()
11+
/// },
12+
/// theme: NeonTheme(
13+
/// branding: Branding(
14+
/// name: 'Notes',
15+
/// logo: VectorGraphic(
16+
/// loader: AssetBytesLoader(
17+
/// 'assets/logo.svg.vec',
18+
/// ),
19+
/// ),
20+
/// ),
21+
/// ),
22+
/// );
23+
/// }
24+
///```
125
library notes;
226

327
import 'dart:async';

packages/neon/neon_notifications/lib/neon_notifications.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/// The Neon client for the notifications app.
2+
///
3+
/// Add `NotificationsApp()` to your runNeon command to execute this app.
4+
///
5+
/// A basic implementation could look like:
6+
///```dart
7+
///Future<void> main() async {
8+
/// await runNeon(
9+
/// appImplementations: {
10+
/// NotificationsApp()
11+
/// },
12+
/// theme: NeonTheme(
13+
/// branding: Branding(
14+
/// name: 'Notifications',
15+
/// logo: VectorGraphic(
16+
/// loader: AssetBytesLoader(
17+
/// 'assets/logo.svg.vec',
18+
/// ),
19+
/// ),
20+
/// ),
21+
/// ),
22+
/// );
23+
/// }
24+
///```
125
library notifications;
226

327
import 'dart:async';

packages/nextcloud/lib/src/helpers/spreed.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ enum RoomType {
4949

5050
/// Types of chat messages.
5151
///
52-
/// Use [name] to get the string representation that is used in the API.
52+
/// Use `name` to get the string representation that is used in the API.
5353
/// See https://github.com/nextcloud/spreed/blob/master/lib/Chat/ChatManager.php.
5454
enum MessageType {
5555
/// Message.
@@ -79,7 +79,7 @@ enum MessageType {
7979

8080
/// Actor types of chat messages.
8181
///
82-
/// Use [name] to get the string representation that is used in the API.
82+
/// Use `name` to get the string representation that is used in the API.
8383
/// See https://github.com/nextcloud/spreed/blob/master/lib/Model/Attendee.php.
8484
enum ActorType {
8585
/// Logged-in users.

0 commit comments

Comments
 (0)