forked from firka/student-legacy
image cache, font etc
This commit is contained in:
parent
1b95afdfc2
commit
677303fa2c
@ -78,6 +78,11 @@ class LoginScreenState extends State<LoginScreen> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
precacheImage(const AssetImage('assets/images/showcase1.png'), context);
|
||||||
|
precacheImage(const AssetImage('assets/images/showcase2.png'), context);
|
||||||
|
precacheImage(const AssetImage('assets/images/showcase3.png'), context);
|
||||||
|
precacheImage(const AssetImage('assets/images/showcase4.png'), context);
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
body: Container(
|
body: Container(
|
||||||
decoration: const BoxDecoration(color: Color(0xFFDAE4F7)),
|
decoration: const BoxDecoration(color: Color(0xFFDAE4F7)),
|
||||||
@ -130,7 +135,7 @@ class LoginScreenState extends State<LoginScreen> {
|
|||||||
height: MediaQuery.of(context).size.height,
|
height: MediaQuery.of(context).size.height,
|
||||||
viewportFraction: 1,
|
viewportFraction: 1,
|
||||||
autoPlay: true,
|
autoPlay: true,
|
||||||
autoPlayInterval: const Duration(seconds: 4),
|
autoPlayInterval: const Duration(seconds: 5),
|
||||||
pauseAutoPlayOnTouch: true),
|
pauseAutoPlayOnTouch: true),
|
||||||
items: [1, 2, 3, 4].map((i) {
|
items: [1, 2, 3, 4].map((i) {
|
||||||
return Builder(
|
return Builder(
|
||||||
@ -152,7 +157,7 @@ class LoginScreenState extends State<LoginScreen> {
|
|||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: AppColors.of(context)
|
color: AppColors.of(context)
|
||||||
.loginPrimary,
|
.loginPrimary,
|
||||||
fontSize: 20,
|
fontSize: 19,
|
||||||
fontFamily: 'Montserrat',
|
fontFamily: 'Montserrat',
|
||||||
fontWeight: FontWeight.w700,
|
fontWeight: FontWeight.w700,
|
||||||
height: 1.3),
|
height: 1.3),
|
||||||
@ -166,7 +171,7 @@ class LoginScreenState extends State<LoginScreen> {
|
|||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontFamily: 'FigTree',
|
fontFamily: 'FigTree',
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
fontSize: 18,
|
fontSize: 17,
|
||||||
height: 1.3),
|
height: 1.3),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user