mirror of
https://github.com/go-vikunja/app
synced 2024-12-03 15:52:41 +00:00
38 lines
859 B
Dart
38 lines
859 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class FancyAppBar extends StatelessWidget {
|
|
final String title;
|
|
final double barHeight = 80.0;
|
|
|
|
FancyAppBar(this.title);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return new Container(
|
|
height: barHeight,
|
|
width: double.infinity,
|
|
decoration: new BoxDecoration(color: Colors.blue),
|
|
child: new Padding(
|
|
padding: EdgeInsets.symmetric(vertical: 38, horizontal: 10),
|
|
child: new Text(title,
|
|
style: const TextStyle(
|
|
color: Colors.white,
|
|
fontWeight: FontWeight.w600,
|
|
fontFamily: 'Quicksand',
|
|
fontSize: 21)),
|
|
),
|
|
);
|
|
}
|
|
}
|
|
|
|
/*
|
|
Usage:
|
|
return new Scaffold(
|
|
body: new Column(
|
|
children: <Widget>[
|
|
new FancyAppBar('Login to Vikunja'),
|
|
],
|
|
),
|
|
);
|
|
*/
|