Skip to content
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

使用Material样式时异常GPU占用 #814

Closed
baijunty opened this issue Apr 12, 2024 · 1 comment
Closed

使用Material样式时异常GPU占用 #814

baijunty opened this issue Apr 12, 2024 · 1 comment

Comments

@baijunty
Copy link

示例代码

import 'package:easy_refresh/easy_refresh.dart';
import 'package:flutter/material.dart';

class SampleItemListView extends StatelessWidget {
  const SampleItemListView({
    super.key,
  });
  static const routeName = '/';

  @override
  Widget build(BuildContext context) {
    var controller = EasyRefreshController();
    return Scaffold(
      appBar: AppBar(
        title: const Text('Sample Items'),
        actions: const [
          IconButton(
            icon: Icon(Icons.settings),
            onPressed: null,
          ),
        ],
      ),
      body: EasyRefresh(
          controller: controller,
          header: const MaterialHeader(),
          footer: const MaterialFooter(),
          onLoad: () {},
          onRefresh: () {},
          child: ListView.builder(
              itemCount: 25,
              itemBuilder: (BuildContext context, int index) {
                return Text('Sample Items $index');
              })),
    );
  }
}

使用浏览器打开后非刷新加载,静置状态下GPU也呈现高使用率
image
改回classic样式后正常
后测试桌面端和手机端出现同样性能问题。

@xuelongqy
Copy link
Owner

3.3.5 已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants