Skip to content

Commit

Permalink
Merge branch 'feature/avatar' of https://github.com/forus-labs/forui
Browse files Browse the repository at this point in the history
…into feature/avatar
  • Loading branch information
Daviiddoo committed Jul 23, 2024
2 parents 5eee4fe + ee096a5 commit c096c8d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
8 changes: 4 additions & 4 deletions samples/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ class _AppRouter extends $_AppRouter {
path: '/alert/default',
page: AlertRoute.page,
),
AutoRoute(
path: '/avatar/default',
page: AvatarRoute.page,
),
AutoRoute(
path: '/avatar/default',
page: AvatarRoute.page,
),
AutoRoute(
path: '/badge/default',
page: BadgeRoute.page,
Expand Down
18 changes: 8 additions & 10 deletions samples/lib/widgets/avatar.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:io';

import 'package:flutter/material.dart';

import 'package:auto_route/auto_route.dart';
Expand All @@ -15,12 +13,12 @@ class AvatarPage extends SampleScaffold {

@override
Widget child(BuildContext context) => Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
FAvatar(
image: const NetworkImage('https://picsum.photos/250?image=9'),
placeholderBuilder: (_) => const Text('MN'),
),
],
);
mainAxisAlignment: MainAxisAlignment.center,
children: [
FAvatar(
image: const NetworkImage('https://picsum.photos/250?image=9'),
placeholderBuilder: (_) => const Text('MN'),
),
],
);
}

0 comments on commit c096c8d

Please sign in to comment.