import 'package:gecko/globals.dart'; import 'package:flutter/material.dart'; import 'package:gecko/widgets/certs_received.dart'; import 'package:gecko/widgets/certs_sent.dart'; import 'package:gecko/widgets/header_profile.dart'; class CertificationsScreen extends StatelessWidget { const CertificationsScreen( {Key? key, required this.address, required this.username}) : super(key: key); final String address; final String username; @override Widget build(BuildContext context) { return Scaffold( backgroundColor: backgroundColor, appBar: AppBar( elevation: 0, toolbarHeight: 60 * ratio, title: const SizedBox( height: 22, child: Text('Certifications'), )), body: SafeArea( child: Column(children: [ HeaderProfile(address: address, username: username), const Text('Certifications reçus'), CertsReceived(address: address), const SizedBox(height: 15), const Text('Certifications émises'), CertsSent(address: address), const SizedBox(height: 20), ]), )); } }