Widget build()

in ui/lib/app_appbar.dart [28:80]


  Widget build(BuildContext context, WidgetRef ref) {
    final authRepo = ref.read(authRepositoryProvider);

    return AppBar(
      elevation: 1,
      shadowColor: Colors.black38,
      iconTheme: IconThemeData(color: Theme.of(context).iconTheme.color),
      leadingWidth: 35,
      title: InkWell(
          onTap: () {
            context.go('/home');
          },
          child: Row(
            children: [
              Text(
                '  Developer Workbench',
                style: Theme.of(context).textTheme.titleLarge?.merge(
                      TextStyle(fontSize: 23, fontWeight: FontWeight.w500),
                    ),
              ),
            ],
          )
          //
          ),
      //backgroundColor: Theme.of(context).primaryColor,
      actions: [
        Row(
          children: [
            authRepo.currentUser()!.displayName != null
                ? Tooltip(
                    message: "${authRepo.currentUser()!.email}",
                    child: Text("${authRepo.currentUser()!.displayName}",
                        style: TextStyle(color: Colors.black87)),
                  )
                : Container(),
            Padding(
              padding: const EdgeInsets.all(8.0),
              child: ElevatedButton(
                style: ElevatedButton.styleFrom(
                  backgroundColor: Theme.of(context).primaryColor,
                  padding: EdgeInsets.all(8),
                ),
                child: const Icon(Icons.logout_sharp),
                onPressed: () {
                  authRepo.signOut();
                },
              ),
            ),
          ],
        )
      ],
    );
  }