// import 'package:discover_module/custom_widget/text.dart'; // import 'package:discover_module/model_class/k2_api_model/kol_Certificate_k2.dart'; // import 'package:discover_module/model_class/k2_api_model/kol_aff_k2.dart'; // import 'package:discover_module/model_class/k2_api_model/kol_awards_k2.dart'; // import 'package:discover_module/model_class/k2_api_model/kol_education_k2.dart'; // import 'package:discover_module/model_class/k2_api_model/kol_email_k2.dart'; // import 'package:discover_module/model_class/k2_api_model/kol_event_k2.dart'; // import 'package:discover_module/model_class/k2_api_model/kol_location_k2.dart'; // import 'package:discover_module/model_class/k2_api_model/kol_pno_k2.dart'; // import 'package:discover_module/model_class/k2_api_model/kol_training_k2.dart'; // import 'package:discover_module/storage_hive/email_data/email_model_hive.dart'; import 'package:discover_module/contacts_module/custom_widget/text.dart'; import 'package:flutter/material.dart'; class bsheetk2new extends StatefulWidget { bsheetk2new(this.selectedLocation, {super.key}); final selectedLocation; @override State createState() => _bsheetk2State(); } class _bsheetk2State extends State { @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 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: Padding( padding: const EdgeInsets.only(left: 9.0), child: Text1( title: ' $key \n ${data[key]}', // Display key and corresponding value ), ), ) // Text1(title: data.keyValue) ], ); }), ), ], ), ); }, ); } }