优化详情

This commit is contained in:
toly
2020-05-03 14:19:11 +08:00
parent b58de9d465
commit c0ff2b548c
110 changed files with 1905 additions and 285 deletions

View File

@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter_unit/views/dialogs/dialog_about.dart';
/// create by 张风捷特烈 on 2020-03-25
/// contact me by email 1981462002@qq.com
@@ -35,8 +34,8 @@ class ShapeMaterialButton extends StatelessWidget {
shape: CircleBorder(
side: BorderSide(width: 2.0, color: Color(0xFFFFDFDFDF)),
),
onLongPress: () => DialogAbout.show(context),
onPressed: () => DialogAbout.show(context)),
onLongPress: () => Navigator.of(context).pushNamed('AboutMePage'),
onPressed: () => Navigator.of(context).pushNamed('AboutMePage')),
),
Container(
width: 100,
@@ -54,8 +53,8 @@ class ShapeMaterialButton extends StatelessWidget {
),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(15))),
onLongPress: () => DialogAbout.show(context),
onPressed: () => DialogAbout.show(context)),
onLongPress: () => Navigator.of(context).pushNamed('AboutMePage'),
onPressed: () => Navigator.of(context).pushNamed('AboutMePage')),
),
],
);