mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-15 11:04:20 -05:00
21 lines
815 B
Dart
21 lines
815 B
Dart
import 'package:awesome_extensions/awesome_extensions.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
import 'package:flutter_translate/flutter_translate.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
|
|
class DefaultAppBar extends AppBar {
|
|
DefaultAppBar(
|
|
{required super.title, 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: 32)
|
|
.paddingAll(4)));
|
|
}
|