mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-23 15:29:13 +00:00
32 lines
No EOL
784 B
Dart
32 lines
No EOL
784 B
Dart
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(
|
|
toolbarHeight: 50,
|
|
centerTitle: true,
|
|
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(
|
|
fontSize: 20
|
|
),
|
|
)
|
|
],
|
|
),
|
|
);
|
|
}
|
|
|
|
@override
|
|
Size get preferredSize => const Size.fromHeight(kToolbarHeight);
|
|
} |