Skip to content
Snippets Groups Projects
certifications.dart 1.18 KiB
Newer Older
poka's avatar
poka committed
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})
poka's avatar
poka committed
      : super(key: key);
  final String address;
  final String username;
poka's avatar
poka committed

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        backgroundColor: backgroundColor,
        appBar: AppBar(
            elevation: 0,
poka's avatar
poka committed
            toolbarHeight: 60 * ratio,
            title: const SizedBox(
              height: 22,
              child: Text('Certifications'),
            )),
        body: SafeArea(
          child: Column(children: <Widget>[
            HeaderProfile(address: address, username: username),
poka's avatar
poka committed
            const Text('Certifications reçus'),
poka's avatar
poka committed
            CertsReceived(address: address),
poka's avatar
poka committed
            const SizedBox(height: 15),
            const Text('Certifications émises'),
poka's avatar
poka committed
            CertsSent(address: address),
            const SizedBox(height: 20),
          ]),
        ));
  }
}