adguard-home-manager/lib/screens/settings/appbar.dart

31 lines
746 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class SettingsAppBar extends StatelessWidget with PreferredSizeWidget {
const SettingsAppBar({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return AppBar(
2022-09-27 15:53:17 +02:00
toolbarHeight: 80,
2022-09-27 15:43:52 +02:00
title: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.asset(
'assets/icon/icon1024-white-center.png',
width: 60,
),
const SizedBox(width: 20),
const Text(
"AdGuard Home Manager",
style: TextStyle(
2022-09-27 15:53:17 +02:00
fontSize: 22
2022-09-27 15:43:52 +02:00
),
)
],
2022-09-27 15:53:17 +02:00
)
);
}
@override
2022-09-27 15:53:17 +02:00
Size get preferredSize => const Size.fromHeight(80);
}