wip: history panes

This commit is contained in:
DenserMeerkat
2024-07-20 22:05:08 +05:30
parent 8eadd7f8fa
commit f8ede1edc8
26 changed files with 473 additions and 71 deletions

View File

@ -32,3 +32,24 @@ class MethodBox extends StatelessWidget {
);
}
}
class StatusCode extends StatelessWidget {
const StatusCode({super.key, required this.statusCode, this.style});
final int statusCode;
final TextStyle? style;
@override
Widget build(BuildContext context) {
final brightness = Theme.of(context).brightness;
final Color color =
getResponseStatusCodeColor(statusCode, brightness: brightness);
return Text(
statusCode.toString(),
style: style?.copyWith(color: color) ??
Theme.of(context).textTheme.bodyMedium?.copyWith(
fontFamily: kCodeStyle.fontFamily,
color: color,
),
);
}
}