User Profile Create a profile page with the total quiz score

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.
Get Unlimited PRO Access

OR


*Enrollment provides full access to this course (and updates) for life.

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({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {

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

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

Q&A Chat