KonectarEvents/lib/contacts_module/ui_screen/k2api_integrated_ui/k2testbshhet.dart

73 lines
3.1 KiB
Dart

// import 'package:konectar_events/custom_widget/text.dart';
// import 'package:konectar_events/model_class/k2_api_model/kol_Certificate_k2.dart';
// import 'package:konectar_events/model_class/k2_api_model/kol_aff_k2.dart';
// import 'package:konectar_events/model_class/k2_api_model/kol_awards_k2.dart';
// import 'package:konectar_events/model_class/k2_api_model/kol_education_k2.dart';
// import 'package:konectar_events/model_class/k2_api_model/kol_email_k2.dart';
// import 'package:konectar_events/model_class/k2_api_model/kol_event_k2.dart';
// import 'package:konectar_events/model_class/k2_api_model/kol_location_k2.dart';
// import 'package:konectar_events/model_class/k2_api_model/kol_pno_k2.dart';
// import 'package:konectar_events/model_class/k2_api_model/kol_training_k2.dart';
// import 'package:konectar_events/storage_hive/email_data/email_model_hive.dart';
import 'package:konectar_events/contacts_module/custom_widget/text.dart';
import 'package:flutter/material.dart';
class bsheetk2new extends StatefulWidget {
bsheetk2new(this.selectedLocation, {super.key});
final selectedLocation;
@override
State<bsheetk2new> createState() => _bsheetk2State();
}
class _bsheetk2State extends State<bsheetk2new> {
@override
Widget build(BuildContext context) {
return DraggableScrollableSheet(
expand: false,
builder: (BuildContext context, ScrollController scrollController) {
return Container(
width: MediaQuery.of(context).size.width,
//color: Color.fromARGB(255, 246, 248, 252),
decoration: BoxDecoration(borderRadius: BorderRadius.circular(0)),
child: Column(
children: [
Expanded(
child: ListView.builder(
controller: scrollController,
itemCount: widget.selectedLocation.length,
itemBuilder: (BuildContext context, int index) {
var data = widget.selectedLocation[index];
List<String> keys = data.keys.toList();
print("Checkingdata: $data");
print("Checkingdata: $keys");
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
// getPostalCodeText(widget.selectedLocation),
for (var key in keys)
Padding(
padding:
const EdgeInsets.symmetric(vertical: 4.0),
child: Text1(
title:
' $key \n ${data[key]}', // Display key and corresponding value
),
) // Text1(title: data.keyValue)
],
);
}),
),
],
),
);
},
);
}
}