27 lines
812 B
Dart
27 lines
812 B
Dart
import 'package:flutter/material.dart';
|
||
import 'package:get/get.dart';
|
||
import 'package:reverse_nn/application/controllers/application_controller.dart';
|
||
|
||
class ApplicationLayout extends StatelessWidget {
|
||
final Widget body;
|
||
const ApplicationLayout({super.key, required this.body});
|
||
|
||
@override
|
||
Widget build(BuildContext context) {
|
||
final ApplicationController applicationController = Get.put(ApplicationController());
|
||
return Scaffold(
|
||
appBar: AppBar(
|
||
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
|
||
title: const Text('Реверс НН'),
|
||
actions: [
|
||
IconButton(icon: Icon(
|
||
applicationController.getThemeIcon()),
|
||
onPressed: applicationController.toggleTheme
|
||
),
|
||
],
|
||
),
|
||
body: body,
|
||
);
|
||
}
|
||
}
|