Browse Source

change app theme

master
daivph 5 years ago
parent
commit
d701318185
4 changed files with 16 additions and 0 deletions
  1. +10
    -0
      lib/app.dart
  2. +2
    -0
      lib/presentation/screens/forgot_password/sc_forgot_password.dart
  3. +2
    -0
      lib/presentation/screens/login/view/login_form.dart
  4. +2
    -0
      lib/presentation/screens/login/view/widget_top_welcome.dart

+ 10
- 0
lib/app.dart View File

@@ -1,6 +1,7 @@
import 'package:farm_tpf/presentation/screens/home/view/home_page.dart';
import 'package:farm_tpf/presentation/screens/login/view/login_page.dart';
import 'package:farm_tpf/presentation/screens/splash/view/splash_page.dart';
import 'package:farm_tpf/utils/const_color.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

@@ -43,6 +44,15 @@ class _AppViewState extends State<AppView> {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
backgroundColor: Colors.white,
brightness: Brightness.light,
primaryColor: COLOR_CONST.DEFAULT,
accentColor: COLOR_CONST.DEFAULT,
hoverColor: COLOR_CONST.GREEN,
fontFamily: 'Roboto',
),
navigatorKey: _navigatorKey,
builder: (context, child) {
return BlocListener<AuthenticationBloc, AuthenticationState>(

+ 2
- 0
lib/presentation/screens/forgot_password/sc_forgot_password.dart View File

@@ -87,6 +87,8 @@ class _ForgotPasswordScreenState extends State<ForgotPasswordScreen> {
),
child: Text(
'Gửi'.toUpperCase(),
style:
TextStyle(fontWeight: FontWeight.bold, color: COLOR_CONST.WHITE),
),
),
);

+ 2
- 0
lib/presentation/screens/login/view/login_form.dart View File

@@ -199,6 +199,8 @@ class _LoginButton extends StatelessWidget {
),
child: Text(
'Đăng nhập'.toUpperCase(),
style: TextStyle(
fontWeight: FontWeight.bold, color: COLOR_CONST.WHITE),
),
),
);

+ 2
- 0
lib/presentation/screens/login/view/widget_top_welcome.dart View File

@@ -1,3 +1,4 @@
import 'package:farm_tpf/utils/const_color.dart';
import 'package:flutter/material.dart';

class WidgetTopWelcome extends StatelessWidget {
@@ -12,6 +13,7 @@ class WidgetTopWelcome extends StatelessWidget {
width: 172,
child: FlutterLogo(
size: 170,
colors: Colors.green,
),
),
SizedBox(

Loading…
Cancel
Save