-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fdc1c95
commit 2d677ee
Showing
7 changed files
with
234 additions
and
45 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import 'package:flutter/material.dart'; | ||
|
||
class NewsAgencyHeader extends StatelessWidget { | ||
const NewsAgencyHeader({ | ||
super.key, | ||
required this.imageSize, | ||
this.textColor, | ||
}); | ||
|
||
final double imageSize; | ||
final Color? textColor; | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Padding( | ||
padding: const EdgeInsets.symmetric(vertical: 15.0), | ||
child: SizedBox( | ||
height: 61, | ||
child: Row( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
CircleAvatar( | ||
radius: imageSize, | ||
), | ||
const SizedBox( | ||
width: 10, | ||
), | ||
Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Text( | ||
'CNN Philippines', | ||
style: Theme.of(context) | ||
.textTheme | ||
.bodyMedium! | ||
.copyWith(color: textColor, fontWeight: FontWeight.w900,fontSize: 20), | ||
), | ||
Text( | ||
'10 minutes ago', | ||
style: Theme.of(context).textTheme.bodyMedium!.copyWith( | ||
color: textColor, fontWeight: FontWeight.normal), | ||
) | ||
], | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters