mirror of
https://github.com/localsend/localsend.git
synced 2026-04-18 14:07:47 -04:00
30 lines
651 B
Dart
30 lines
651 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:localsend_app/widget/copyable_text.dart';
|
|
|
|
class DebugEntry extends StatelessWidget {
|
|
static const headerStyle = TextStyle(fontWeight: FontWeight.bold);
|
|
|
|
final String name;
|
|
final String? value;
|
|
|
|
const DebugEntry({
|
|
required this.name,
|
|
required this.value,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
const SizedBox(height: 20),
|
|
Text(name, style: headerStyle),
|
|
CopyableText(
|
|
name: name,
|
|
value: value,
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|