2022-09-26 16:08:56 +02:00
|
|
|
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
|
|
|
)
|
2022-09-26 16:08:56 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2022-09-27 15:53:17 +02:00
|
|
|
Size get preferredSize => const Size.fromHeight(80);
|
2022-09-26 16:08:56 +02:00
|
|
|
}
|