From 3cdd54458bfc6ba0066cb2a82c4a91bd4baf9b82 Mon Sep 17 00:00:00 2001 From: Felipe Erias Date: Fri, 12 Nov 2021 13:59:07 +0900 Subject: Nice animation when switching pages --- lib/page_dashboard.dart | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'lib/page_dashboard.dart') diff --git a/lib/page_dashboard.dart b/lib/page_dashboard.dart index c0259ed..17258a8 100644 --- a/lib/page_dashboard.dart +++ b/lib/page_dashboard.dart @@ -1,12 +1,18 @@ import 'package:flutter/material.dart'; class DashboardPage extends StatelessWidget { - // TODO placeholder + const DashboardPage({Key? key}) : super(key: key); + @override Widget build(BuildContext context) { - return Text( - 'Dashboard', - style: Theme.of(context).textTheme.headline1, + return Container( + color: Colors.lightGreen, + constraints: BoxConstraints.expand(), + alignment: Alignment.center, + child: Text( + 'Dashboard', + style: Theme.of(context).textTheme.headline1, + ), ); } } -- cgit 1.2.3-korg