Add logo to confirmation screen

This commit is contained in:
Hillel Coren 2021-06-22 13:22:23 +03:00
parent ae1ba66eb8
commit 32fa649491
9 changed files with 16 additions and 10 deletions

View File

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@ -27,6 +27,11 @@ class ConfirmEmail extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.asset(
'assets/images/icon.png',
height: 80,
),
SizedBox(height: 80),
Text(
localization.confirmYourEmailAddress,
style: Theme.of(context).textTheme.headline6,

View File

@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart';
import 'package:invoiceninja_flutter/constants.dart';
import 'package:flutter/material.dart';
import 'package:flutter_redux/flutter_redux.dart';
@ -84,7 +85,7 @@ class MainScreen extends StatelessWidget {
child: LoadingIndicator(),
color: Theme.of(context).cardColor,
);
} else if (!state.isUserConfirmed) {
} else if (!state.isUserConfirmed || !kReleaseMode) {
return ConfirmEmailBuilder();
}

View File

@ -69,7 +69,7 @@ class MenuDrawer extends StatelessWidget {
width: MenuDrawer.LOGO_WIDTH,
url: company.settings.companyLogo,
)
: Image.asset('assets/images/logo.png', width: MenuDrawer.LOGO_WIDTH);
: Image.asset('assets/images/icon.png', width: MenuDrawer.LOGO_WIDTH);
Widget _companyListItem(CompanyEntity company) {
final userCompany = state.userCompanyStates
@ -896,7 +896,7 @@ void _showAbout(BuildContext context) async {
final appLegalese = '© ${DateTime.now().year} Invoice Ninja';
final apppIcon = Image.asset(
'assets/images/logo.png',
'assets/images/icon.png',
width: 40.0,
height: 40.0,
);

View File

@ -44,7 +44,7 @@ class CachedImage extends StatelessWidget {
imageUrl: url,
placeholder: (context, url) => CircularProgressIndicator(),
errorWidget: (context, url, Object error) =>
Image.asset('assets/images/logo.png', width: 32, height: 30),
Image.asset('assets/images/icon.png', width: 32, height: 30),
);
}
}

View File

@ -17,7 +17,7 @@ class InitScreen extends StatelessWidget {
mainAxisSize: MainAxisSize.max,
children: <Widget>[
Expanded(
child: Center(child: Image.asset('assets/images/logo.png')),
child: Center(child: Image.asset('assets/images/icon.png')),
),
SizedBox(
height: 4.0,

View File

@ -288,7 +288,7 @@ class _LoginState extends State<LoginView> {
padding: EdgeInsets.only(top: 20.0, bottom: 20.0),
child: Center(
child: InkWell(
child: Image.asset('assets/images/logo.png',
child: Image.asset('assets/images/icon.png',
width: 100, height: 100),
onTap: () {
launch(kSiteUrl, forceSafariVC: false, forceWebView: false);

View File

@ -12,7 +12,7 @@ environment:
flutter_icons:
android: "launcher_icon"
ios: false
image_path: "assets/images/logo.png"
image_path: "assets/images/icon.png"
dependencies:
flutter:
@ -84,6 +84,6 @@ flutter:
uses-material-design: true
assets:
- assets/images/logo.png
- assets/images/icon.png
- assets/images/google-icon.png
- assets/images/payment_types/

View File

@ -12,7 +12,7 @@ environment:
flutter_icons:
android: "launcher_icon"
ios: false
image_path: "assets/images/logo.png"
image_path: "assets/images/icon.png"
dependencies:
flutter:
@ -103,6 +103,6 @@ flutter:
uses-material-design: true
assets:
- assets/images/logo.png
- assets/images/icon.png
- assets/images/google-icon.png
- assets/images/payment_types/