Initial commit
This commit is contained in:
26
lib/ui/layouts/application_layout.dart
Normal file
26
lib/ui/layouts/application_layout.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
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,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user