buildHeader function
Implementation
Widget buildHeader(BuildContext context) {
return Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Padding(
padding: EdgeInsets.only(
top: TcicScreen.adaptWidth(12),
bottom: TcicScreen.adaptWidth(12),
left: TcicScreen.adaptWidth(16),
),
child: BaseText(
StringEnum.setting,
style: TextStyle(
color: Theme.of(context).colorScheme.onSecondary,
fontSize: TcicScreen.adaptFontSize(14),
),
),
),
Expanded(
child: Align(
alignment: Alignment.centerRight,
child: Material(
color: Colors.transparent,
child: InkWell(
onTap: () => _closeRightPanel(context),
child: Container(
padding: EdgeInsets.only(
top: TcicScreen.adaptWidth(12),
bottom: TcicScreen.adaptWidth(12),
right: TcicScreen.adaptWidth(16),
left: TcicScreen.adaptWidth(25),
),
child: Icon(
Icons.close,
color: Theme.of(context).colorScheme.onSecondary,
size: TcicScreen.adaptWidth(16),
),
),
),
),
),
),
],
);
}