mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-09 22:57:21 +00:00
change some padding and when bake to AccessManagementPage get table
This commit is contained in:
@ -72,6 +72,8 @@ class AccessBloc extends Bloc<AccessEvent, AccessState> {
|
|||||||
|
|
||||||
|
|
||||||
Future<void> selectTime(SelectTime event, Emitter<AccessState> emit) async {
|
Future<void> selectTime(SelectTime event, Emitter<AccessState> emit) async {
|
||||||
|
emit(AccessLoaded());
|
||||||
|
|
||||||
final DateTime? picked = await showDatePicker(
|
final DateTime? picked = await showDatePicker(
|
||||||
context: event.context,
|
context: event.context,
|
||||||
initialDate: DateTime.now(),
|
initialDate: DateTime.now(),
|
||||||
@ -182,6 +184,8 @@ class AccessBloc extends Bloc<AccessEvent, AccessState> {
|
|||||||
endTime = 'End Time';
|
endTime = 'End Time';
|
||||||
passwordName.clear();
|
passwordName.clear();
|
||||||
selectedIndex=0;
|
selectedIndex=0;
|
||||||
|
effectiveTimeTimeStamp=null;
|
||||||
|
expirationTimeTimeStamp=null;
|
||||||
add(FetchTableData());
|
add(FetchTableData());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@ class AccessManagementPage extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
scaffoldBody: BlocProvider(create: (BuildContext context) => AccessBloc()..add(FetchTableData()),
|
scaffoldBody: BlocProvider(create: (BuildContext context) => AccessBloc()..add(FetchTableData()),
|
||||||
child: BlocConsumer<AccessBloc, AccessState>(listener: (context, state) {
|
child: BlocConsumer<AccessBloc, AccessState>(listener: (context, state) {
|
||||||
|
|
||||||
}, builder: (context, state) {
|
}, builder: (context, state) {
|
||||||
final accessBloc = BlocProvider.of<AccessBloc>(context);
|
final accessBloc = BlocProvider.of<AccessBloc>(context);
|
||||||
final filteredData = accessBloc.filteredData;
|
final filteredData = accessBloc.filteredData;
|
||||||
|
@ -50,13 +50,13 @@ class DateTimeWebWidget extends StatelessWidget {
|
|||||||
const SizedBox(height: 8,),
|
const SizedBox(height: 8,),
|
||||||
Container(
|
Container(
|
||||||
height:size.height * 0.055 ,
|
height:size.height * 0.055 ,
|
||||||
padding: EdgeInsets.only(top: 10,bottom: 10,right: 30,left: 30),
|
padding: EdgeInsets.only(top: 10,bottom: 10,right: 30,left: 10),
|
||||||
decoration: containerDecoration,
|
decoration: containerDecoration,
|
||||||
child: FittedBox(
|
child: FittedBox(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: startTime,
|
onTap: startTime,
|
||||||
@ -66,9 +66,9 @@ class DateTimeWebWidget extends StatelessWidget {
|
|||||||
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),),
|
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),),
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
SizedBox(width: 10,),
|
SizedBox(width: 30,),
|
||||||
const Icon(Icons.arrow_right_alt),
|
const Icon(Icons.arrow_right_alt),
|
||||||
SizedBox(width: 10,),
|
SizedBox(width: 30,),
|
||||||
|
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap:endTime,
|
onTap:endTime,
|
||||||
@ -78,7 +78,7 @@ class DateTimeWebWidget extends StatelessWidget {
|
|||||||
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),
|
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
SizedBox(width: 10,),
|
SizedBox(width: 30,),
|
||||||
|
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
icon,
|
icon,
|
||||||
|
Reference in New Issue
Block a user