Image asset logo caching
This commit is contained in:
parent
58b336a73d
commit
511381909d
5 changed files with 41 additions and 29 deletions
|
|
@ -5,7 +5,7 @@ import 'package:supertokens_flutter/supertokens.dart';
|
|||
|
||||
class MIHAppDrawer extends StatefulWidget {
|
||||
final AppUser signedInUser;
|
||||
final Image logo;
|
||||
final AssetImage logo;
|
||||
const MIHAppDrawer({
|
||||
super.key,
|
||||
required this.signedInUser,
|
||||
|
|
@ -74,7 +74,7 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
|
|||
children: [
|
||||
SizedBox(
|
||||
height: 60,
|
||||
child: widget.logo,
|
||||
child: Image(image: widget.logo),
|
||||
),
|
||||
Text(
|
||||
"${widget.signedInUser.fname} ${widget.signedInUser.lname}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue