You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
714 B
Dart
30 lines
714 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class packageContent extends StatelessWidget {
|
|
final String packageName;
|
|
final String packageCount;
|
|
|
|
packageContent({this.packageName, this.packageCount});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
children: <Widget>[
|
|
Expanded(
|
|
flex: 2,
|
|
child: Text(
|
|
packageName,
|
|
style: TextStyle(color: Colors.grey, fontWeight: FontWeight.w400),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Text(
|
|
packageCount,
|
|
textAlign: TextAlign.end,
|
|
style: TextStyle(color: Colors.grey, fontWeight: FontWeight.w400),
|
|
),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
} |