You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.7 KiB

4 years ago
import 'package:flutter/material.dart';
4 years ago
import 'package:flutter_html/flutter_html.dart';
4 years ago
class StoreDetailsPage extends StatefulWidget {
4 years ago
final Map<String, dynamic> arguments;
StoreDetailsPage({this.arguments});
4 years ago
@override
State<StatefulWidget> createState() {
return _StoreDetailsPage();
}
}
class _StoreDetailsPage extends State<StoreDetailsPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Color(0xFFF7F7F7),
elevation: 0,
leading: GestureDetector(
onTap: () {
Navigator.of(context).pop();
},
child: Container(
alignment: Alignment.centerRight,
margin: EdgeInsets.only(left: 10),
padding: EdgeInsets.all(6),
child: Icon(
Icons.arrow_back_ios,
color: Colors.black,
size: 24,
),
),
),
4 years ago
title: Text(
widget.arguments["title"],
style: TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Color(0xFF353535),
),
),
4 years ago
titleSpacing: 2,
leadingWidth: 56,
actions: [
Container(
margin: EdgeInsets.only(right: 15),
child: GestureDetector(
onTap: () {},
child: Icon(
Icons.share,
size: 24,
color: Colors.black,
),
),
)
],
),
body: Container(
child: Column(
children: [
Expanded(
4 years ago
child: Html(data: widget.arguments['html']),
4 years ago
flex: 1,
),
],
),
),
);
}
}