update static lint issue

hmxc
小赖 4 years ago
parent 537dec7130
commit 391a4713b0

@ -389,8 +389,6 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
bool _canSubmit(int? weight, int approach, DateTime? dateTime, String? item) {
if (weight == null) {
return false;
} else if (approach == null) {
return false;
} else if (dateTime == null) {
return false;
} else if (item.isEmptyOrNull) {

@ -2,14 +2,12 @@ import 'package:flutter/material.dart';
import 'package:flustars/flustars.dart';
import 'package:get/get.dart';
import 'package:provider/provider.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/pages/sign/sign_func.dart';
import 'package:aku_community/pages/sign/sign_up/sign_up_common_widget.dart';
import 'package:aku_community/pages/tab_navigator.dart';
import 'package:aku_community/provider/sign_up_provider.dart';
import 'package:aku_community/utils/headers.dart';
class SignUpVerifyPage extends StatefulWidget {
@ -79,9 +77,6 @@ class _SignUpVerifyPageState extends State<SignUpVerifyPage> {
disabledColor: kPrimaryColor.withOpacity(0.3),
child: '登录'.text.bold.make(),
onPressed: () async {
final signUpProvider =
Provider.of<SignUpProvider>(context, listen: false);
if (_formKey.currentState!.validate()) {
bool result = await SignFunc.signUp();
if (result) Get.offAll(() => TabNavigator());

@ -37,21 +37,19 @@ class ActivityCard extends StatelessWidget {
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
ImgModel.first(model!.imgUrls) == null
? SizedBox()
: Hero(
tag: ImgModel.first(model!.imgUrls),
child: Material(
color: Colors.grey,
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model!.imgUrls)),
height: 210.w,
width: double.infinity,
fit: BoxFit.cover,
),
),
),
Hero(
tag: ImgModel.first(model!.imgUrls),
child: Material(
color: Colors.grey,
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: API.image(ImgModel.first(model!.imgUrls)),
height: 210.w,
width: double.infinity,
fit: BoxFit.cover,
),
),
),
model!.title!.text
.size(28.sp)
.black

@ -41,7 +41,7 @@ class _TopicDetailPageState extends State<TopicDetailPage> {
heroTag: 'event_add',
onPressed: () async {
if (LoginUtil.isNotLogin) return;
bool? result = await Get.to(() => AddNewEventPage.topic(
await Get.to(() => AddNewEventPage.topic(
topicName: widget.model!.summary,
initTopic: widget.model!.id,
));

@ -41,24 +41,18 @@ class _NewAdvicePageState extends State<NewAdvicePage> {
switch (widget.type) {
case AdviceType.SUGGESTION:
return '建议咨询';
break;
case AdviceType.COMPLAIN:
return '投诉表扬';
break;
}
return '';
}
List<String> get tabs {
switch (widget.type) {
case AdviceType.SUGGESTION:
return ['您的建议', '您的咨询'];
break;
case AdviceType.COMPLAIN:
return ['您的投诉', '您的表扬'];
break;
}
return [];
}
_buildType(int index, String asset, String title) {

@ -22,7 +22,6 @@ class BeeParse {
switch (dif) {
case -1:
return '去年';
break;
case 0:
return '今年';
case 1:

@ -18,8 +18,7 @@ class ApplicationView extends StatefulWidget {
ApplicationView.custom(
{Key? key, required List<AO> this.items, this.needAllApp = true})
: assert(items != null),
super(key: key);
: super(key: key);
@override
_ApplicationViewState createState() => _ApplicationViewState();

Loading…
Cancel
Save