Skip to content

Commit

Permalink
Documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Daviiddoo committed Aug 6, 2024
1 parent 2a4e334 commit f3c1b2e
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions docs/pages/docs/avatar.mdx
Original file line number Diff line number Diff line change
@@ -49,14 +49,14 @@ FAvatar(
### `FAvatar.raw(...)`

```dart
// Raw constructor - with icon
// Raw constructor - with icon.
FAvatar.raw(
child: FAssets.icons.baby(
colorFilter: ColorFilter.mode(theme.colorScheme.mutedForeground, BlendMode.srcIn),
),
);
// Raw constructor - with text
// Raw constructor - with text.
FAvatar.raw(child: const Text('MN'));
```

@@ -68,18 +68,18 @@ FAvatar.raw(child: const Text('MN'));
<Widget name='avatar' variant='invalid' query={{}}/>
</Tabs.Tab>
<Tabs.Tab>
```dart
```dart {7}
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
// With fallback widget.
// With fallback.
FAvatar(
image: const AssetImage(''),
fallback: const Text('MN'),
),
const SizedBox(width: 10),
// Without fallback widget.
// Without fallback.
FAvatar(image: const AssetImage('')),
],
);
@@ -101,7 +101,7 @@ FAvatar.raw(child: const Text('MN'));
FAvatar.raw(),
const SizedBox(width: 10),
// Raw constructor - with child.
// Raw constructor - with icon.
FAvatar.raw(
child: FAssets.icons.baby(
colorFilter: ColorFilter.mode(theme.colorScheme.mutedForeground, BlendMode.srcIn),
2 changes: 1 addition & 1 deletion forui/lib/src/widgets/avatar/avatar.dart
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ class FAvatar extends StatelessWidget {
String? semanticLabel,
Widget? fallback,
super.key,
}) : child = _AvatarContent(
}) : child = _FAvatarContent(
style: style,
size: size,
image: image,
4 changes: 2 additions & 2 deletions forui/lib/src/widgets/avatar/avatar_content.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
part of 'avatar.dart';

class _AvatarContent extends StatelessWidget {
class _FAvatarContent extends StatelessWidget {
final FAvatarStyle? style;
final double size;
final ImageProvider image;
final String? semanticLabel;
final Widget? fallback;

const _AvatarContent({
const _FAvatarContent({
required this.style,
required this.size,
required this.image,

0 comments on commit f3c1b2e

Please sign in to comment.