我想在另一个listview.bilder内有一个带有显示名字的CircleAvatar的listview.builder

时间:2019-04-07 18:45:21

标签: json dart flutter

我想在列表视图中创建一个带圆圈头像的listview.builder。

#include "pch.h"
#include <string>
#include <iostream>
#include <windows.h>
using namespace std;

int main()
{
    LPCVOID Addr = reinterpret_cast<LPVOID>(0x1711B91E610);

    HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, false, 9948);
    if (!handle) {
        return 0;
    }

    u16string data(29, u'\0');
    // or:
    // u16string data; data.resize(29);

    ReadProcessMemory(handle, Addr, &data[0], 29*sizeof(char16_t), 0);
    wcout << reinterpret_cast<const wchar_t*>(data.c_str()) << endl;

    cin.get();
    return 0;
}

1 个答案:

答案 0 :(得分:0)

ListView.builder(

        itemBuilder: (BuildContext context, int index){
          return CircleAvatar(
            backgroundColor: Colors.lightBlue,
            child: Text(projects.users[index]['username']),
          );
        },
      ),