little home page thingie
This commit is contained in:
parent
450d2bb3fa
commit
0bf6feb731
@ -3,6 +3,9 @@ import 'dart:math';
|
|||||||
|
|
||||||
import 'package:filcnaplo/api/providers/live_card_provider.dart';
|
import 'package:filcnaplo/api/providers/live_card_provider.dart';
|
||||||
import 'package:filcnaplo/ui/date_widget.dart';
|
import 'package:filcnaplo/ui/date_widget.dart';
|
||||||
|
import 'package:filcnaplo/utils/format.dart';
|
||||||
|
import 'package:i18n_extension/i18n_widget.dart';
|
||||||
|
import 'package:intl/intl.dart';
|
||||||
import 'package:refilc_plus/providers/premium_provider.dart';
|
import 'package:refilc_plus/providers/premium_provider.dart';
|
||||||
import 'package:animated_list_plus/animated_list_plus.dart';
|
import 'package:animated_list_plus/animated_list_plus.dart';
|
||||||
import 'package:filcnaplo/api/providers/update_provider.dart';
|
import 'package:filcnaplo/api/providers/update_provider.dart';
|
||||||
@ -210,17 +213,34 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
|||||||
// Welcome text
|
// Welcome text
|
||||||
title: Padding(
|
title: Padding(
|
||||||
padding: const EdgeInsets.only(left: 24.0),
|
padding: const EdgeInsets.only(left: 24.0),
|
||||||
child: Text(
|
child: Column(
|
||||||
greeting,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
overflow: TextOverflow.fade,
|
children: [
|
||||||
style: TextStyle(
|
Text(
|
||||||
fontWeight: FontWeight.bold,
|
greeting,
|
||||||
fontSize: 18.0,
|
overflow: TextOverflow.fade,
|
||||||
color: Theme.of(context)
|
textAlign: TextAlign.start,
|
||||||
.textTheme
|
style: TextStyle(
|
||||||
.bodyMedium
|
fontWeight: FontWeight.bold,
|
||||||
?.color,
|
fontSize: 18.0,
|
||||||
),
|
color: Theme.of(context)
|
||||||
|
.textTheme
|
||||||
|
.bodyMedium
|
||||||
|
?.color,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
DateFormat('EEEE, MMM d',
|
||||||
|
I18n.locale.countryCode)
|
||||||
|
.format(DateTime.now())
|
||||||
|
.capital(),
|
||||||
|
textAlign: TextAlign.start,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 13.0,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
@ -244,7 +264,7 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
||||||
expandedHeight: _liveCardAnimation.value * 234.0,
|
expandedHeight: _liveCardAnimation.value * 238.0,
|
||||||
|
|
||||||
// Live Card
|
// Live Card
|
||||||
flexibleSpace: FlexibleSpaceBar(
|
flexibleSpace: FlexibleSpaceBar(
|
||||||
@ -253,7 +273,7 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
|||||||
left: 24.0,
|
left: 24.0,
|
||||||
right: 24.0,
|
right: 24.0,
|
||||||
top:
|
top:
|
||||||
58.0 + MediaQuery.of(context).padding.top,
|
62.0 + MediaQuery.of(context).padding.top,
|
||||||
bottom: 52.0,
|
bottom: 52.0,
|
||||||
),
|
),
|
||||||
child: Transform.scale(
|
child: Transform.scale(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user