Show recent activity under me
This commit is contained in:
@@ -4,6 +4,7 @@ import '../models/device.dart';
|
||||
import '../models/user_info.dart';
|
||||
import '../services/authentication_manager.dart';
|
||||
import '../services/brandmeister_client.dart';
|
||||
import '../widgets/user_header.dart';
|
||||
import 'device_detail_view.dart';
|
||||
|
||||
class DevicesView extends StatefulWidget {
|
||||
@@ -135,34 +136,11 @@ class _DevicesViewState extends State<DevicesView> {
|
||||
|
||||
return ListView(
|
||||
children: [
|
||||
if (userInfo != null)
|
||||
Container(
|
||||
padding: const EdgeInsets.all(16),
|
||||
color: Theme.of(context).colorScheme.primaryContainer,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
userInfo.displayName,
|
||||
style: Theme.of(context).textTheme.titleLarge?.copyWith(
|
||||
color: Theme.of(context).colorScheme.onPrimaryContainer,
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
_devices.isNotEmpty
|
||||
? 'DMR ID: ${_devices.first.id}'
|
||||
: 'No devices',
|
||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.onPrimaryContainer
|
||||
.withValues(alpha: 0.7),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
UserHeader(
|
||||
userInfo: userInfo,
|
||||
radioId: _devices.isNotEmpty ? _devices.first.id.toString() : null,
|
||||
),
|
||||
const Divider(),
|
||||
..._devices.map((device) => _DeviceRow(
|
||||
device: device,
|
||||
onTap: () {
|
||||
|
||||
Reference in New Issue
Block a user