feat:增加common框架
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flisp_app/models/flisp.dart';
|
||||
import 'package:flisp_app/widgets/common.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_common/widget/common_widget.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
Widget buildFlispStatsCard(BuildContext context, List<Flisp> flisps) {
|
||||
@@ -10,7 +11,7 @@ Widget buildFlispStatsCard(BuildContext context, List<Flisp> flisps) {
|
||||
int workCount = flisps.where((flisp) => flisp.tag == FlispTag.work).length;
|
||||
int studyCount = flisps.where((flisp) => flisp.tag == FlispTag.study).length;
|
||||
|
||||
return BuildCard(
|
||||
return CommonCard(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
@@ -275,7 +276,7 @@ Widget _buildFlispItem({
|
||||
context: context,
|
||||
id: flisp.id,
|
||||
onDelete: () => onDelete(flisp),
|
||||
child: BuildCard(
|
||||
child: CommonCard(
|
||||
child: InkWell(
|
||||
onTap: () => onEdit(flisp),
|
||||
child: Column(
|
||||
|
||||
Reference in New Issue
Block a user