Skip to content

Commit

Permalink
fix status bar color controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Nov1kov committed Sep 28, 2019
1 parent ebe777a commit ff2b03b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class _AppState extends State<App> {
void initState() {
SystemChrome.setSystemUIOverlayStyle(
SystemUiOverlayStyle(
statusBarColor: Colors.transparent, //top bar color
statusBarColor: CustomColors.StatusBarColor,
statusBarIconBrightness: Brightness.dark,
statusBarBrightness: Brightness.dark,
),
);
Expand Down
3 changes: 2 additions & 1 deletion lib/splash.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
import 'package:istart/resultpage.dart';

import 'Repository.dart';
import 'authpage.dart';
import 'hellopage.dart';

class splashscreen extends StatefulWidget {
Expand All @@ -19,7 +20,7 @@ class _splashscreenState extends State<splashscreen> {
var r = Repository();
await r.load();
Navigator.of(context).pushReplacement(MaterialPageRoute(
builder: (context) => ResultPage(selectedJob: "Бухгалтер"),
builder: (context) => AuthPage(),
));
});
}
Expand Down
1 change: 1 addition & 0 deletions lib/util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class CustomColors {
static const Color AccentShadow = Color.fromRGBO(84, 184, 255, 0.68);

static const Color GradientBottom = Color.fromRGBO(194, 212, 248, 1);
static const Color StatusBarColor = Color.fromRGBO(194, 212, 248, 0.3);
static const Color GradientTop = Color.fromRGBO(247, 249, 253, 1);
static const Color GradientMiddle = Color.fromRGBO(244, 248, 255, 1);
static const Color BorderColor = Color.fromRGBO(84, 105, 255, 1);
Expand Down

0 comments on commit ff2b03b

Please sign in to comment.