import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; class ConnectAppBar extends StatelessWidget with PreferredSizeWidget { const ConnectAppBar({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return AppBar( title: Text(AppLocalizations.of(context)!.connect), centerTitle: true, ); } @override Size get preferredSize => const Size.fromHeight(kToolbarHeight); }