我想在列表视图中创建一个带圆圈头像的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;
}
答案 0 :(得分:0)
ListView.builder(
itemBuilder: (BuildContext context, int index){
return CircleAvatar(
backgroundColor: Colors.lightBlue,
child: Text(projects.users[index]['username']),
);
},
),