68 lines
2.0 KiB
Dart
68 lines
2.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/flutter_svg.dart';
|
|
import 'package:tm_app/core/constants/assets.dart';
|
|
import 'package:tm_app/core/constants/strings.dart';
|
|
import 'package:tm_app/core/utils/size_config.dart';
|
|
import 'package:tm_app/views/detail/widgets/tender_detail_action.dart';
|
|
import 'package:tm_app/views/detail/widgets/tender_detail_card.dart';
|
|
import 'package:tm_app/views/detail/widgets/tender_detail_header.dart';
|
|
|
|
class TenderDetailDesktopScreen extends StatelessWidget {
|
|
const TenderDetailDesktopScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Colors.white,
|
|
appBar: _buildAppBar(context),
|
|
body: SingleChildScrollView(
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(16.0),
|
|
child: Center(
|
|
child: SizedBox(
|
|
width: 740,
|
|
child: Column(
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
TenderDetailHeader(isBig: true,),
|
|
SizedBox(height: 24.0.h()),
|
|
const TenderDetailCard(),
|
|
SizedBox(height: 24.0.h()),
|
|
TenderDetailActions(),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
PreferredSizeWidget _buildAppBar(BuildContext context) {
|
|
return PreferredSize(
|
|
preferredSize: const Size.fromHeight(60),
|
|
child: AppBar(
|
|
backgroundColor: Colors.white,
|
|
elevation: 0,
|
|
titleSpacing: 0,
|
|
leading: IconButton(
|
|
icon: SvgPicture.asset(
|
|
AssetsManager.arrowLeft,
|
|
height: 24.0.w(),
|
|
width: 24.0.w(),
|
|
),
|
|
onPressed: () => Navigator.pop(context),
|
|
),
|
|
title: Text(
|
|
AppStrings.tenderDetailTitle,
|
|
style: TextStyle(
|
|
color: Colors.black,
|
|
fontWeight: FontWeight.w600,
|
|
fontSize: 20.0.sp(),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|