Add logo to confirmation screen
This commit is contained in:
parent
ae1ba66eb8
commit
32fa649491
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
|
|
@ -27,6 +27,11 @@ class ConfirmEmail extends StatelessWidget {
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
|
Image.asset(
|
||||||
|
'assets/images/icon.png',
|
||||||
|
height: 80,
|
||||||
|
),
|
||||||
|
SizedBox(height: 80),
|
||||||
Text(
|
Text(
|
||||||
localization.confirmYourEmailAddress,
|
localization.confirmYourEmailAddress,
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:invoiceninja_flutter/constants.dart';
|
import 'package:invoiceninja_flutter/constants.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_redux/flutter_redux.dart';
|
import 'package:flutter_redux/flutter_redux.dart';
|
||||||
|
|
@ -84,7 +85,7 @@ class MainScreen extends StatelessWidget {
|
||||||
child: LoadingIndicator(),
|
child: LoadingIndicator(),
|
||||||
color: Theme.of(context).cardColor,
|
color: Theme.of(context).cardColor,
|
||||||
);
|
);
|
||||||
} else if (!state.isUserConfirmed) {
|
} else if (!state.isUserConfirmed || !kReleaseMode) {
|
||||||
return ConfirmEmailBuilder();
|
return ConfirmEmailBuilder();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ class MenuDrawer extends StatelessWidget {
|
||||||
width: MenuDrawer.LOGO_WIDTH,
|
width: MenuDrawer.LOGO_WIDTH,
|
||||||
url: company.settings.companyLogo,
|
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) {
|
Widget _companyListItem(CompanyEntity company) {
|
||||||
final userCompany = state.userCompanyStates
|
final userCompany = state.userCompanyStates
|
||||||
|
|
@ -896,7 +896,7 @@ void _showAbout(BuildContext context) async {
|
||||||
|
|
||||||
final appLegalese = '© ${DateTime.now().year} Invoice Ninja';
|
final appLegalese = '© ${DateTime.now().year} Invoice Ninja';
|
||||||
final apppIcon = Image.asset(
|
final apppIcon = Image.asset(
|
||||||
'assets/images/logo.png',
|
'assets/images/icon.png',
|
||||||
width: 40.0,
|
width: 40.0,
|
||||||
height: 40.0,
|
height: 40.0,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ class CachedImage extends StatelessWidget {
|
||||||
imageUrl: url,
|
imageUrl: url,
|
||||||
placeholder: (context, url) => CircularProgressIndicator(),
|
placeholder: (context, url) => CircularProgressIndicator(),
|
||||||
errorWidget: (context, url, Object error) =>
|
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),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class InitScreen extends StatelessWidget {
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Center(child: Image.asset('assets/images/logo.png')),
|
child: Center(child: Image.asset('assets/images/icon.png')),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 4.0,
|
height: 4.0,
|
||||||
|
|
|
||||||
|
|
@ -288,7 +288,7 @@ class _LoginState extends State<LoginView> {
|
||||||
padding: EdgeInsets.only(top: 20.0, bottom: 20.0),
|
padding: EdgeInsets.only(top: 20.0, bottom: 20.0),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
child: Image.asset('assets/images/logo.png',
|
child: Image.asset('assets/images/icon.png',
|
||||||
width: 100, height: 100),
|
width: 100, height: 100),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
launch(kSiteUrl, forceSafariVC: false, forceWebView: false);
|
launch(kSiteUrl, forceSafariVC: false, forceWebView: false);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ environment:
|
||||||
flutter_icons:
|
flutter_icons:
|
||||||
android: "launcher_icon"
|
android: "launcher_icon"
|
||||||
ios: false
|
ios: false
|
||||||
image_path: "assets/images/logo.png"
|
image_path: "assets/images/icon.png"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
|
|
@ -84,6 +84,6 @@ flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
||||||
assets:
|
assets:
|
||||||
- assets/images/logo.png
|
- assets/images/icon.png
|
||||||
- assets/images/google-icon.png
|
- assets/images/google-icon.png
|
||||||
- assets/images/payment_types/
|
- assets/images/payment_types/
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ environment:
|
||||||
flutter_icons:
|
flutter_icons:
|
||||||
android: "launcher_icon"
|
android: "launcher_icon"
|
||||||
ios: false
|
ios: false
|
||||||
image_path: "assets/images/logo.png"
|
image_path: "assets/images/icon.png"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
|
|
@ -103,6 +103,6 @@ flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
||||||
assets:
|
assets:
|
||||||
- assets/images/logo.png
|
- assets/images/icon.png
|
||||||
- assets/images/google-icon.png
|
- assets/images/google-icon.png
|
||||||
- assets/images/payment_types/
|
- assets/images/payment_types/
|
||||||
Loading…
Reference in New Issue