-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Data Pager] "ScrollController not attached to any scroll views." error in syncfusion_flutter_datagrid 27.2.2 #2173
Comments
We tried to run your sample, but due to the missing files, it could not run. Therefore, we checked the issue with a simple sample, and it worked correctly without any issues. The problem you are facing that occurs only when accessing the position of scroll controller before assigning it to any scroll view. Could you share if any customizations have been made in this area? Regards, |
We suspect that the reported issue has been resolved at your end. Hence, we are closing this issue. If you need any further assistance, please reopen this. We are always happy to help. Regards, |
Here is the missing files. implementation of 'data_table_content_conponent.dart': import 'package:flutter/material.dart';
class DataTableContentComponent1 extends StatelessWidget {
final double width;
final String contentText;
final String? toolTipText;
final String? profileImgPath;
final bool isShowProfile;
final bool? isRightBorder;
final bool? isBottomBorder;
final TextStyle? myTextStyle;
const DataTableContentComponent1(
{super.key,
required this.width,
required this.contentText,
this.toolTipText,
this.profileImgPath,
this.isShowProfile = false,
this.myTextStyle,
this.isRightBorder,
this.isBottomBorder});
@override
Widget build(BuildContext context) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 15),
height: double.maxFinite,
width: width,
// padding: const EdgeInsets.only(left: 30.0),
// decoration: BoxDecoration(
// border: Border(
// left: BorderSide(color: AppColors.blackShade2Color),
// bottom: isBottomBorder == true
// ? BorderSide(color: AppColors.blackShade2Color)
// : BorderSide(color: Colors.transparent),
// right: isRightBorder == true
// ? BorderSide(color: AppColors.blackShade2Color)
// : BorderSide(color: Colors.transparent))),
child: Row(
// mainAxisAlignment: MainAxisAlignment.center,
children: [
if (isShowProfile) ...[
Container(
height: 18,
width: 18,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(9),
image: DecorationImage(
image: AssetImage(profileImgPath.toString()))),
),
const SizedBox(
width: 10,
),
],
Flexible(
child: Tooltip(
message: toolTipText,
// textStyle: AppTextstyles.l300white12,
triggerMode: TooltipTriggerMode.tap,
showDuration: const Duration(milliseconds: 2000),
padding: const EdgeInsets.all(8),
child: Text(
contentText,
style: myTextStyle,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
),
],
),
);
}
}
Here is the implementation of 'data_table_header_component.dart': import 'package:flutter/material.dart';
class DataTableHeaderComponent extends StatelessWidget {
final String headerTitle;
final String? iconPath;
final double? width;
final bool? isCenter;
final bool? isTopRightRound;
final bool? isRightRound;
final bool? isLeftRound;
final bool? isTopLeftRound;
const DataTableHeaderComponent({
super.key,
required this.headerTitle,
this.iconPath,
this.width,
this.isCenter = false,
this.isTopRightRound = false,
this.isTopLeftRound = false,
this.isRightRound,
this.isLeftRound,
});
@override
Widget build(BuildContext context) {
return Column(
children: [
Container(
padding: const EdgeInsets.symmetric(horizontal: 15),
height: 40,
width: width,
decoration: BoxDecoration(
// color: AppColors.darkSkyBlueColor.withOpacity(0.2),
// color: AppColors.purpleColor.withOpacity(0.8),
borderRadius: BorderRadius.only(
topLeft: isLeftRound == true
? const Radius.circular(4)
: Radius.zero,
topRight: isRightRound == true
? const Radius.circular(4)
: Radius.zero,
bottomLeft: isLeftRound == true
? const Radius.circular(4)
: Radius.zero,
bottomRight: isRightRound == true
? const Radius.circular(4)
: Radius.zero,
)),
child: Center(
child: Row(
mainAxisAlignment: (isCenter == true)
? MainAxisAlignment.center
: MainAxisAlignment.start,
children: [
Text(
headerTitle,
// style: AppTextStyles.pop600White17
// .copyWith(fontSize: 14, color: AppColors.whiteColor),
)
],
),
),
),
],
);
}
} |
@SethupathyD |
Based on the provided code, we have adjusted the sample and made it runnable on our side. However, we were unable to replicate the issue as described. For your reference, we have attached a video of our testing process and the sample we used.
Video.reference.mp4We kindly request you to update Flutter (3.24.5) and SfDataGrid (27.2.5) to the latest versions and test it on your end. If the issue persists, please modify the attached sample to reproduce the problem. Additionally, we request you to share a video recording demonstrating the issue with the modified sample for better clarity. This information will help us address your concerns comprehensively and provide an appropriate solution. Regards, |
Bug description
I Implemented DataGrid with DataPager. When I click on next button or last page button, which are on the right most side of the pager, or previous bttuon or first page button, which are on the left most side of the pager. I got this error
Steps to reproduce
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
19.11.2024_12.52.47_REC.mp4
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Web
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: