veilidchat/lib/layout/default_app_bar.dart

19 lines
713 B
Dart
Raw Normal View History

2023-07-26 22:38:09 -04:00
import 'package:awesome_extensions/awesome_extensions.dart';
2023-07-23 23:13:21 -04:00
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
class DefaultAppBar extends AppBar {
2023-08-17 18:10:24 -04:00
DefaultAppBar(
{required super.title, super.key, Widget? leading, super.actions})
2023-07-23 23:13:21 -04:00
: super(
leading: leading ??
Container(
margin: const EdgeInsets.all(4),
decoration: BoxDecoration(
color: Colors.black.withAlpha(32),
shape: BoxShape.circle),
2023-07-26 22:38:09 -04:00
child:
SvgPicture.asset('assets/images/vlogo.svg', height: 32)
2023-08-17 18:10:24 -04:00
.paddingAll(4)));
2023-07-23 23:13:21 -04:00
}