nexus/lib/widgets/html/quoted.dart
Henry-Hiles d2ec5f035b
treewide: use dot shorthands where possible
Now this feature is stable, we should use it. I might have missed some usecases, but these can be added in future commits.
2026-06-02 12:50:56 -04:00

16 lines
411 B
Dart

import "package:flutter/material.dart";
class Quoted extends StatelessWidget {
final Widget child;
const Quoted(this.child, {super.key});
@override
Widget build(BuildContext context) => Container(
decoration: BoxDecoration(
border: Border(
left: .new(width: 4, color: Theme.of(context).dividerColor),
),
),
child: Padding(padding: .only(left: 8), child: child),
);
}