user_profile.dart 731 B

1234567891011121314151617181920212223242526
  1. import 'package:app_flowy/workspace/presentation/widgets/menu/menu_list.dart';
  2. import 'package:flowy_infra_ui/widget/spacing.dart';
  3. import 'package:flutter/material.dart';
  4. class UserProfile extends MenuItem {
  5. const UserProfile({Key? key}) : super(key: key);
  6. @override
  7. Widget build(BuildContext context) {
  8. return Row(children: [
  9. SizedBox(
  10. width: 30,
  11. height: 30,
  12. child: ClipRRect(
  13. borderRadius: BorderRadius.circular(8),
  14. child: const Image(image: AssetImage('assets/images/avatar.jpg')),
  15. ),
  16. ),
  17. const HSpace(6),
  18. const Text("nathan", style: TextStyle(fontSize: 18)),
  19. ]);
  20. }
  21. @override
  22. MenuItemType get type => MenuItemType.userProfile;
  23. }