mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-04-25 09:39:12 -04:00
23 lines
749 B
Dart
23 lines
749 B
Dart
import 'package:awesome_extensions/awesome_extensions.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
|
|
class DefaultAppBar extends AppBar {
|
|
DefaultAppBar(
|
|
{super.title,
|
|
super.flexibleSpace,
|
|
super.key,
|
|
Widget? leading,
|
|
super.actions})
|
|
: super(
|
|
leading: leading ??
|
|
Container(
|
|
margin: const EdgeInsets.all(4),
|
|
decoration: BoxDecoration(
|
|
color: Colors.black.withAlpha(32),
|
|
shape: BoxShape.circle),
|
|
child:
|
|
SvgPicture.asset('assets/images/vlogo.svg', height: 24)
|
|
.paddingAll(4)));
|
|
}
|