|
|
|
|
@ -14,6 +14,7 @@ import 'package:test_sa/providers/gas_request_providers/site_provider.dart';
|
|
|
|
|
import 'package:test_sa/views/widgets/date_and_time/date_picker.dart';
|
|
|
|
|
|
|
|
|
|
import '../../../models/device/asset_search.dart';
|
|
|
|
|
import '../../../new_views/app_style/app_color.dart';
|
|
|
|
|
import '../../../new_views/common_widgets/app_lazy_loading.dart';
|
|
|
|
|
import '../../../new_views/common_widgets/default_app_bar.dart';
|
|
|
|
|
import '../../widgets/equipment/equipment_status_buttons.dart';
|
|
|
|
|
@ -40,7 +41,36 @@ class _AssetFilterScreenState extends State<AssetFilterScreen> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
appBar: DefaultAppBar(title: context.translation.filter),
|
|
|
|
|
appBar: AppBar(
|
|
|
|
|
automaticallyImplyLeading: false,
|
|
|
|
|
titleSpacing: 16,
|
|
|
|
|
title: Row(
|
|
|
|
|
children: [
|
|
|
|
|
const Icon(Icons.arrow_back_ios).onPress(() {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
}),
|
|
|
|
|
Text(
|
|
|
|
|
context.translation.filter,
|
|
|
|
|
style: AppTextStyles.heading3?.copyWith(fontWeight: FontWeight.w600, color: context.isDark ? AppColor.neutral30 : AppColor.neutral50),
|
|
|
|
|
).expanded,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
actions: [
|
|
|
|
|
Row(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
Text(context.translation.reset,
|
|
|
|
|
style: AppTextStyles.bodyText2.copyWith(color: const Color(0xFF4A8DB7)),
|
|
|
|
|
).paddingAll(8).onPress(() {
|
|
|
|
|
setState(() {
|
|
|
|
|
_department = null;
|
|
|
|
|
_site = null;
|
|
|
|
|
});
|
|
|
|
|
}),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
body: Column(
|
|
|
|
|
children: [
|
|
|
|
|
SingleChildScrollView(
|
|
|
|
|
|