๐Ÿคนโ€โ™€๏ธ User Profile

Create a profile page with the total quiz score

Profile Page

Customize your profile screen with the total quiz score.

file_type_flutter profile.dart
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:quizapp/services/services.dart';

class ProfileScreen extends StatelessWidget {
  const ProfileScreen({super.key});

  @override
  Widget build(BuildContext context) {

    var report = Provider.of<Report>(context);
    var user = AuthService().user;

    if (user != null) {
     // add your UI here
    } 
  }
}

Questions? Let's chat

Open Discord