29 lines
837 B
Dart
29 lines
837 B
Dart
import 'package:flutter/widgets.dart';
|
|
|
|
import '../../../core/api_gateway.dart';
|
|
import '../actions/cancel_run_action.dart';
|
|
import '../actions/title_action.dart';
|
|
|
|
/// Native actions on the loaded run, all using the app's one gateway and
|
|
/// applying only accepted server detail through the same controller callback.
|
|
class RunDetailActions extends StatelessWidget {
|
|
const RunDetailActions({
|
|
super.key,
|
|
required this.run,
|
|
required this.gateway,
|
|
required this.onRunChanged,
|
|
});
|
|
|
|
final JsonMap run;
|
|
final ApiGateway gateway;
|
|
final ValueChanged<JsonMap> onRunChanged;
|
|
|
|
@override
|
|
Widget build(BuildContext context) => Wrap(
|
|
children: [
|
|
RunTitleAction(run: run, gateway: gateway, onRunChanged: onRunChanged),
|
|
CancelRunAction(run: run, gateway: gateway, onRunChanged: onRunChanged),
|
|
],
|
|
);
|
|
}
|