awesome_nizam_widgets 0.0.1 awesome_nizam_widgets: ^0.0.1 copied to clipboard
A new Flutter package for using approval card.
0.0.1 #
Modify cards for approval related view:
'''dart class Form926View extends GetView
@override Widget build(BuildContext context) { return Scaffold( backgroundColor: AppThemes.bgColor, appBar: AppBar( title: Obx( () => Row( children: [ controller.isSearching.value ? Expanded( child: TextFormField( controller: controller.searchController, style: const TextStyle(color: Colors.white), decoration: const InputDecoration( fillColor: Colors.transparent, hintText: 'Search', hintStyle: TextStyle(color: Colors.white), ), onChanged: controller.onChangeWhenTypeSearch, ), ) : Expanded( child: GestureDetector( onTap: () => controller.isSearching.value = !controller.isSearching.value, child: const Text('Bill Approval'), ), ), ], ), ), actions: [ Obx( () => IconButton( onPressed: () { if (controller.isSearching.value) { controller.searchController.clear(); controller.searchList.value = null; } controller.isSearching.value = !controller.isSearching.value; }, icon: Icon(controller.isSearching.value ? Icons.close : Icons.search), ), ), ], ), body: Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ Card( margin: EdgeInsets.zero, child: Padding( padding: const EdgeInsets.all(10), child: Column( children: [ Row( crossAxisAlignment: CrossAxisAlignment.center, children: [ Expanded( child: InkWell( onTap: () => controller.onTapStartDateTime(context), child: Container( height: 50, padding: const EdgeInsets.all(10), decoration: BoxDecoration(color: AppThemes.bgColor, border: Border.all()), alignment: Alignment.center, child: Obx( () => Text( getFormatedDate(controller.startDate.value), textAlign: TextAlign.center, style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 16), ), ), ), ), ), Expanded( child: InkWell( onTap: () => controller.onTapEndDateTime(context), child: Container( height: 50, alignment: Alignment.center, padding: const EdgeInsets.all(10), decoration: BoxDecoration(color: AppThemes.bgColor, border: Border.all()), child: Obx( () => Text( getFormatedDate(controller.endDate.value), textAlign: TextAlign.center, style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 16), ), ), ), ), ), Container( height: 50, decoration: BoxDecoration(border: Border.all(color: Colors.black), color: Colors.green), child: IconButton(onPressed: controller.getSupplierBillApprovalList, icon: const Icon(Icons.search, color: Colors.white)), ), ], ), Obx( () => Row( children: [ Radio