add device filter and select time repeat widget

This commit is contained in:
mohammad
2024-08-20 16:36:05 +03:00
parent 0cf5053f8b
commit 1204563c55
13 changed files with 346 additions and 124 deletions

View File

@ -155,7 +155,7 @@ class _DynamicTableState extends State<DynamicTable> {
return Expanded(
child: Container(
height: 80,
padding: const EdgeInsets.all(20.0),
padding: const EdgeInsets.all(15.0),
decoration: const BoxDecoration(
border: Border(
bottom: BorderSide(

View File

@ -72,7 +72,10 @@ class CustomWebTextField extends StatelessWidget {
controller: controller,
style: const TextStyle(color: Colors.black),
decoration: textBoxDecoration()!
.copyWith(hintText: 'Please enter'),
.copyWith(
errorStyle: const TextStyle(height: 0), // Hide the error text space
hintText: 'Please enter'),
),
),
),

View File

@ -0,0 +1,74 @@
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:syncrow_web/utils/color_manager.dart';
import 'package:syncrow_web/utils/constants/assets.dart';
class InfoDialog extends StatelessWidget {
final String title;
final String content;
final Size? size;
final List<Widget>? actions;
InfoDialog({
required this.title,
required this.content,
this.actions,
this.size,
});
@override
Widget build(BuildContext context) {
return AlertDialog(
alignment: Alignment.center,
content: SizedBox(
height: size!.height * 0.25,
child: Column(
children: [
Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(
child: SvgPicture.asset(
Assets.deviceNoteIcon,
height: 35,
width: 35,
),
),
Text(
title,
style: Theme.of(context).textTheme.headlineLarge!.copyWith(
fontSize: 30,
fontWeight: FontWeight.w400,
color: Colors.black),
),
],
),
const SizedBox(
width: 15,
),
Text(
content,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.bodyMedium!.copyWith(
color: ColorsManager.grayColor,
fontWeight: FontWeight.w400,
fontSize: 18),
),
],
),
),
actionsAlignment: MainAxisAlignment.center,
actions: actions ??
<Widget>[
TextButton(
onPressed: () {
Navigator.of(context).pop();
},
child: Text('OK'),
),
],
);
}
}