1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import 'package:flutter/material.dart';
- import 'package:shuqi/public.dart';
- class NovelDetailToolbar extends StatelessWidget {
- final Novel novel;
- NovelDetailToolbar(this.novel);
- read() {}
- @override
- Widget build(BuildContext context) {
- return Container(
- padding: EdgeInsets.only(bottom: Screen.bottomSafeHeight),
- decoration: BoxDecoration(color: Colors.white, boxShadow: Styles.borderShadow),
- height: 50 + Screen.bottomSafeHeight,
- child: Row(children: <Widget>[
- Expanded(
- child: Center(
- child: Text(
- '加书架',
- style: TextStyle(fontSize: 16, color: SQColor.primary),
- ),
- ),
- ),
- Expanded(
- child: GestureDetector(
- onTap: () {
- AppNavigator.pushReader(context, novel.firstArticleId);
- },
- child: Container(
- height: 40,
- decoration: BoxDecoration(color: SQColor.primary, borderRadius: BorderRadius.circular(5)),
- child: Center(
- child: Text(
- '开始阅读',
- style: TextStyle(fontSize: 16, color: Colors.white),
- ),
- ),
- ),
- ),
- ),
- Expanded(
- child: Center(
- child: Text(
- '下载',
- style: TextStyle(fontSize: 16, color: SQColor.primary),
- ),
- ),
- ),
- ]),
- );
- }
- }
|