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 {
|
||||
emit(AccessLoaded());
|
||||
|
||||
final DateTime? picked = await showDatePicker(
|
||||
context: event.context,
|
||||
initialDate: DateTime.now(),
|
||||
@ -182,6 +184,8 @@ class AccessBloc extends Bloc<AccessEvent, AccessState> {
|
||||
endTime = 'End Time';
|
||||
passwordName.clear();
|
||||
selectedIndex=0;
|
||||
effectiveTimeTimeStamp=null;
|
||||
expirationTimeTimeStamp=null;
|
||||
add(FetchTableData());
|
||||
}
|
||||
|
||||
|
@ -36,7 +36,6 @@ class AccessManagementPage extends StatelessWidget {
|
||||
],
|
||||
scaffoldBody: BlocProvider(create: (BuildContext context) => AccessBloc()..add(FetchTableData()),
|
||||
child: BlocConsumer<AccessBloc, AccessState>(listener: (context, state) {
|
||||
|
||||
}, builder: (context, state) {
|
||||
final accessBloc = BlocProvider.of<AccessBloc>(context);
|
||||
final filteredData = accessBloc.filteredData;
|
||||
|
@ -50,13 +50,13 @@ class DateTimeWebWidget extends StatelessWidget {
|
||||
const SizedBox(height: 8,),
|
||||
Container(
|
||||
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,
|
||||
child: FittedBox(
|
||||
child: Column(
|
||||
children: [
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
InkWell(
|
||||
onTap: startTime,
|
||||
@ -66,9 +66,9 @@ class DateTimeWebWidget extends StatelessWidget {
|
||||
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),),
|
||||
)
|
||||
),
|
||||
SizedBox(width: 10,),
|
||||
SizedBox(width: 30,),
|
||||
const Icon(Icons.arrow_right_alt),
|
||||
SizedBox(width: 10,),
|
||||
SizedBox(width: 30,),
|
||||
|
||||
InkWell(
|
||||
onTap:endTime,
|
||||
@ -78,7 +78,7 @@ class DateTimeWebWidget extends StatelessWidget {
|
||||
color: ColorsManager.grayColor,fontSize: 12,fontWeight: FontWeight.w400),
|
||||
),
|
||||
)),
|
||||
SizedBox(width: 10,),
|
||||
SizedBox(width: 30,),
|
||||
|
||||
SvgPicture.asset(
|
||||
icon,
|
||||
|
Reference in New Issue
Block a user