You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.2 KiB
Dart
43 lines
1.2 KiB
Dart
import 'package:doctor_app_flutter/widgets/shared/app_texts_widget.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class PatientSearchHeader extends StatelessWidget {
|
|
final String? title;
|
|
|
|
const PatientSearchHeader({Key? key, this.title}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
padding: EdgeInsets.only(left: 0, right: 5, bottom: 5, top: 5),
|
|
decoration: BoxDecoration(
|
|
color: Colors.white,
|
|
),
|
|
child: Container(
|
|
padding: EdgeInsets.only(left: 10, right: 10, bottom: 5),
|
|
margin: EdgeInsets.only(top: 35),
|
|
child: Row(children: [
|
|
IconButton(
|
|
icon: Icon(Icons.arrow_back_ios),
|
|
color: Color(0xFF2B353E), //Colors.black,
|
|
onPressed: () => Navigator.pop(context),
|
|
),
|
|
Expanded(
|
|
child: AppText(
|
|
title!,
|
|
fontSize: 24.0,
|
|
fontWeight: FontWeight.w700,
|
|
color: Color(0xFF2B353E),
|
|
fontFamily: 'Poppins',
|
|
letterSpacing: -1.44,
|
|
),
|
|
),
|
|
]),
|
|
),
|
|
);
|
|
}
|
|
|
|
@override
|
|
Size get preferredSize => Size(double.maxFinite, 65);
|
|
}
|