This commit is contained in:
ehaya
2020-05-10 14:09:07 +04:30
parent 66c1e7bf16
commit 158c53e534
192 changed files with 13165 additions and 1 deletions
+51
View File
@@ -0,0 +1,51 @@
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
class PageHeader extends StatelessWidget {
const PageHeader({
Key key,
@required double deviceBlockSize,
@required String label,
@required String route,
}) : _deviceBlockSize = deviceBlockSize,
_label = label,
_route = route,
super(key: key);
final double _deviceBlockSize;
final String _label;
final String _route;
@override
Widget build(BuildContext context) {
return Row(
children: <Widget>[
Container(
child: Text(
_label,
style: TextStyle(
color: Colors.black,
fontSize: 7 * _deviceBlockSize,
fontWeight: FontWeight.w700,
letterSpacing: 2,
),
),
),
Spacer(),
InkWell(
customBorder: CircleBorder(),
onTap: () {
Navigator.of(context).popAndPushNamed(_route);
},
child: Container(
padding: EdgeInsets.all(5),
child: Icon(
FontAwesomeIcons.filter,
size: 7 * _deviceBlockSize,
),
),
),
],
);
}
}