fait une mise a jour du code flutter que NAME_1 te fournir en utilisant flutter dans sa dernière version en utilisant obligatoirement image_picker_web: ^3.0.0+1 a la place de image_picker et également   Uint8List. 
import 'dart:io';

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

class GetImage extends StatelessWidget {
  final picker = ImagePicker();

  GetImage({super.key});
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.all(10),
      color: Colors.black,
      height: 100,
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          const Text(
            "Photo de profil",
            style: TextStyle(
                color: Colors.white, fontSize: 20, fontWeight: FontWeight.bold),
          ),
          Container(height: 10),
          Row(
            children: [
              CircleAvatar(
                child: IconButton(
                  icon: const Icon(Icons.camera_alt),
                  onPressed: () async {
                    final result = await picker.pickImage(
                        source: ImageSource.camera,
                        imageQuality: 10,
                        maxHeight: 800,
                        maxWidth: 480);
                    // ignore: use_build_context_synchronously
                    Navigator.of(context).pop(File(result!.path));
                  },
                ),
              ),
              Container(width: 