kopia lustrzana https://gitlab.com/mysocialportal/relatica
Add leading images to blocks and contacts screen
rodzic
5eb7dcf7fe
commit
155500fd70
|
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
|||
import 'package:go_router/go_router.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../controls/image_control.dart';
|
||||
import '../routes.dart';
|
||||
import '../services/blocks_manager.dart';
|
||||
import '../utils/active_profile_selector.dart';
|
||||
|
@ -28,6 +29,11 @@ class BlocksScreen extends StatelessWidget {
|
|||
context.pushNamed(ScreenPaths.userProfile,
|
||||
params: {'id': contact.id});
|
||||
},
|
||||
leading: ImageControl(
|
||||
imageUrl: contact.avatarUrl.toString(),
|
||||
iconOverride: const Icon(Icons.person),
|
||||
width: 32.0,
|
||||
),
|
||||
title: Text(
|
||||
'${contact.name} (${contact.handle})',
|
||||
softWrap: true,
|
||||
|
|
|
@ -5,6 +5,7 @@ import 'package:provider/provider.dart';
|
|||
|
||||
import '../controls/app_bottom_nav_bar.dart';
|
||||
import '../controls/current_profile_button.dart';
|
||||
import '../controls/image_control.dart';
|
||||
import '../controls/linear_status_indicator.dart';
|
||||
import '../controls/responsive_max_width.dart';
|
||||
import '../controls/standard_app_drawer.dart';
|
||||
|
@ -64,6 +65,11 @@ class _ContactsScreenState extends State<ContactsScreen> {
|
|||
context.pushNamed(ScreenPaths.userProfile,
|
||||
params: {'id': contact.id});
|
||||
},
|
||||
leading: ImageControl(
|
||||
imageUrl: contact.avatarUrl.toString(),
|
||||
iconOverride: const Icon(Icons.person),
|
||||
width: 32.0,
|
||||
),
|
||||
title: Text(
|
||||
'${contact.name} (${contact.handle})',
|
||||
softWrap: true,
|
||||
|
|
Ładowanie…
Reference in New Issue