Profile View
This commit is contained in:
@@ -1,8 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:le_kiosque_by_gcs/model/magazine.dart';
|
||||
import 'package:le_kiosque_by_gcs/ui/view/detailmag/detail_mag.dart';
|
||||
|
||||
import 'item_mag_small.dart';
|
||||
|
||||
showDetailCategoryMagazine({
|
||||
BuildContext context,
|
||||
List<Magazine> magazines,
|
||||
String rowTitle,
|
||||
}) {
|
||||
showBottomSheet(
|
||||
//barrierColor: Colors.black87,
|
||||
backgroundColor: Colors.black87,
|
||||
context: context,
|
||||
clipBehavior: Clip.hardEdge,
|
||||
builder: (builder) {
|
||||
return DetailMagazine(
|
||||
magazines: magazines,
|
||||
toolbarTitle: rowTitle,
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
class ItemMagRow extends StatelessWidget {
|
||||
const ItemMagRow({
|
||||
Key key,
|
||||
@@ -22,11 +42,27 @@ class ItemMagRow extends StatelessWidget {
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 16, top: 26),
|
||||
child: Text(
|
||||
rowTitle,
|
||||
style: TextStyle(
|
||||
fontSize: 22,
|
||||
),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
rowTitle,
|
||||
style: TextStyle(
|
||||
fontSize: 22,
|
||||
),
|
||||
),
|
||||
InkWell(
|
||||
onTap: () => showDetailCategoryMagazine(
|
||||
context: context,
|
||||
magazines: magazines,
|
||||
rowTitle: rowTitle,
|
||||
),
|
||||
child: Text(
|
||||
'Détails',
|
||||
style: TextStyle(fontSize: 16, color: Color(0xFF25ADF3)),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
Container(
|
||||
|
||||
Reference in New Issue
Block a user