updated back button on login page to make it more prominent
This commit is contained in:
parent
0dbd87dba1
commit
e75ca95b58
1 changed files with 27 additions and 5 deletions
|
|
@ -1,11 +1,10 @@
|
|||
// Flutter imports:
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
import 'package:fluffychat/pangea/utils/password_forgotten.dart';
|
||||
import 'package:fluffychat/widgets/layouts/login_scaffold.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
|
||||
import 'login.dart';
|
||||
|
||||
class LoginView extends StatelessWidget {
|
||||
|
|
@ -20,7 +19,30 @@ class LoginView extends StatelessWidget {
|
|||
// enforceMobileMode: Matrix.of(context).client.isLogged(),
|
||||
// Pangea#
|
||||
appBar: AppBar(
|
||||
leading: controller.loading ? null : const BackButton(),
|
||||
// #Pangea
|
||||
// leading: controller.loading ? null : const BackButton(),
|
||||
leading: controller.loading
|
||||
? null
|
||||
: Padding(
|
||||
padding: const EdgeInsets.only(left: 10),
|
||||
child: ElevatedButton(
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
style: ButtonStyle(
|
||||
padding: MaterialStateProperty.all(EdgeInsets.zero),
|
||||
backgroundColor: MaterialStateProperty.all<Color>(
|
||||
Theme.of(context)
|
||||
.colorScheme
|
||||
.background
|
||||
.withOpacity(0.75),
|
||||
),
|
||||
shape: MaterialStateProperty.all<OutlinedBorder>(
|
||||
const CircleBorder(),
|
||||
),
|
||||
),
|
||||
child: const Icon(Icons.arrow_back),
|
||||
),
|
||||
),
|
||||
// Pangea#
|
||||
automaticallyImplyLeading: !controller.loading,
|
||||
centerTitle: true,
|
||||
// #Pangea
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue