improvements

main_production_copilot
Sikander Saleem 2 weeks ago
parent b776b68121
commit 673497dc8c

@ -0,0 +1,7 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21.1301 6.72472C20.9916 7 20.6152 7 19.8625 7H12C11.3033 7 10.6399 7.14249 10.0373 7.39992C9.52538 7.61863 9.26942 7.72798 9.13471 7.63904C9 7.5501 9 7.29959 9 6.79855V2.42536C9 1.80577 9.11823 1.62173 9.72821 1.4905C10.4605 1.33295 11.2206 1.25 12 1.25C15.5391 1.25 18.6787 2.96021 20.6376 5.59928C21.0583 6.16605 21.2686 6.44944 21.1301 6.72472Z" fill="#161616"/>
<path d="M6.72472 2.86988C7 3.00838 7 3.38476 7 4.13753V12C7 12.6967 7.14249 13.3601 7.39992 13.9627C7.61863 14.4746 7.72798 14.7306 7.63904 14.8653C7.5501 15 7.29958 15 6.79855 15H2.42536C1.80577 15 1.62173 14.8818 1.4905 14.2718C1.33295 13.5395 1.25 12.7794 1.25 12C1.25 8.46091 2.96021 5.32127 5.59928 3.36241C6.16605 2.94173 6.44944 2.73139 6.72472 2.86988Z" fill="#161616"/>
<path d="M4.13752 17H12C12.6967 17 13.3601 16.8575 13.9627 16.6001C14.4746 16.3814 14.7306 16.272 14.8653 16.361C15 16.4499 15 16.7004 15 17.2015V21.5746C15 22.1942 14.8818 22.3783 14.2718 22.5095C13.5395 22.6671 12.7794 22.75 12 22.75C8.46091 22.75 5.32127 21.0398 3.36241 18.4007C2.94173 17.8339 2.73139 17.5506 2.86988 17.2753C3.00838 17 3.38476 17 4.13752 17Z" fill="#161616"/>
<path d="M17 19.8625C17 20.6152 17 20.9916 17.2753 21.1301C17.5506 21.2686 17.8339 21.0583 18.4007 20.6376C21.0398 18.6787 22.75 15.5391 22.75 12C22.75 11.2206 22.6671 10.4605 22.5095 9.72821C22.3783 9.11823 22.1942 9 21.5746 9H17.2015C16.7004 9 16.4499 9 16.361 9.13471C16.272 9.26942 16.3814 9.52538 16.6001 10.0373C16.8575 10.6399 17 11.3033 17 12V19.8625Z" fill="#161616"/>
<path d="M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z" fill="#161616"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -211,7 +211,7 @@ class _CopilotChatPageState extends State<CopilotChatPage> {
size: BeamSize.pulseOutside, size: BeamSize.pulseOutside,
reserveGlowSpace: false, reserveGlowSpace: false,
borderRadius: 35, borderRadius: 35,
strength: 0.7, strength: 0.5,
child: Row( child: Row(
children: [ children: [
if (_inputState == _InputState.idle) ...[ if (_inputState == _InputState.idle) ...[

@ -78,10 +78,10 @@ class _CopilotHistoryPageState extends State<CopilotHistoryPage> {
spacing: 8, spacing: 8,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
("edit_icon").toSvgAsset(height: 20, width: 20, color: AppColor.icon2Color(context)), ("edit_icon").toSvgAsset(height: 20, width: 20, color: AppColor.background(context)),
Text( Text(
"New Chat", "New Chat",
style: AppTextStyles.bodyText2.copyWith(color: AppColor.textStyleColor(context)), style: AppTextStyles.bodyText2.copyWith(color: AppColor.background(context)),
), ),
], ],
), ),

@ -327,13 +327,13 @@ class _MyAssetsPageState extends State<MyAssetsPage> with SingleTickerProviderSt
heroTag: "tag 1", heroTag: "tag 1",
backgroundColor: AppColor.primary10, backgroundColor: AppColor.primary10,
onPressed: _pickImageFromCamera, onPressed: _pickImageFromCamera,
child: Icon(Icons.camera, size: 40, color: AppColor.addItemButtonColor(context)), child: "asset_scan".toSvgAsset(height: 36, color: AppColor.addItemButtonColor(context)),
), ),
12.height, 12.height,
FloatingActionButton( FloatingActionButton(
heroTag: "some tag 2", heroTag: "some tag 2",
backgroundColor: AppColor.primary10, backgroundColor: AppColor.primary10,
child: Icon(Icons.qr_code_2_rounded, size: 40, color: AppColor.addItemButtonColor(context)), child: Icon(Icons.qr_code_2_rounded, size: 36, color: AppColor.addItemButtonColor(context)),
onPressed: () async { onPressed: () async {
String? result = await Navigator.of(context).push( String? result = await Navigator.of(context).push(
MaterialPageRoute(builder: (_) => const ScanQr()), MaterialPageRoute(builder: (_) => const ScanQr()),
@ -698,7 +698,7 @@ class _MyAssetsPageState extends State<MyAssetsPage> with SingleTickerProviderSt
Navigator.push(context, MaterialPageRoute(builder: (context) => PredictDeviceView(predictedAsset: predictedAssetList))); Navigator.push(context, MaterialPageRoute(builder: (context) => PredictDeviceView(predictedAsset: predictedAssetList)));
} else { } else {
context.showInfoDialog("No Predicted asset found"); context.showInfoDialog("No Predicted asset found");
// Fluttertoast.showToast(msg: 'No Predicted asset found', toastLength: Toast.LENGTH_LONG); // Fluttertoast.showToast(msg: 'No Predicted asset found', toastLength: Toast.LENGTH_LONG);
} }
} }
} catch (e) { } catch (e) {

@ -11,10 +11,8 @@ import 'package:test_sa/views/widgets/item_views/info_text_widget.dart';
class PredictDeviceItemView extends StatelessWidget { class PredictDeviceItemView extends StatelessWidget {
final PredictedAsset device; final PredictedAsset device;
final Function(PredictedAsset) onPressed; final Function(PredictedAsset) onPressed;
final Widget? selectButton;
final bool isSelected;
const PredictDeviceItemView({Key? key, required this.device, required this.onPressed, this.selectButton, this.isSelected = false}) : super(key: key); const PredictDeviceItemView({Key? key, required this.device, required this.onPressed}) : super(key: key);
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -30,6 +28,6 @@ class PredictDeviceItemView extends StatelessWidget {
InfoTextWidget(label: context.translation.site, value: device.metadata?.siteName), InfoTextWidget(label: context.translation.site, value: device.metadata?.siteName),
InfoTextWidget(label: context.translation.department, value: device.metadata?.departmentName,showArrow: true,), InfoTextWidget(label: context.translation.department, value: device.metadata?.departmentName,showArrow: true,),
], ],
).toShadowContainer(context, borderColor: isSelected ? AppColor.primary10 : Colors.transparent).onPress(() => onPressed(device)); ).toShadowContainer(context).onPress(() => onPressed(device));
} }
} }

Loading…
Cancel
Save