@@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
33import 'package:flutter_spinkit/flutter_spinkit.dart' ;
44import 'package:flutter_svg/flutter_svg.dart' ;
55import 'package:gsy_github_app_flutter/common/localization/extension.dart' ;
6+ import 'package:gsy_github_app_flutter/common/localization/l10n/app_localizations.dart' ;
67import 'package:gsy_github_app_flutter/model/common_list_datatype.dart' ;
78import 'package:gsy_github_app_flutter/model/user.dart' ;
89import 'package:gsy_github_app_flutter/model/user_org.dart' ;
@@ -107,7 +108,7 @@ class UserHeaderItem extends StatelessWidget {
107108 return Row (children: list);
108109 }
109110
110- _renderImg (context) {
111+ _renderImg (BuildContext context) {
111112 return RawMaterialButton (
112113 onPressed: () {
113114 if (userInfo.avatar_url != null ) {
@@ -129,7 +130,7 @@ class UserHeaderItem extends StatelessWidget {
129130 ));
130131 }
131132
132- _renderUserInfo (context) {
133+ _renderUserInfo (BuildContext context) {
133134 return Column (
134135 crossAxisAlignment: CrossAxisAlignment .start,
135136 children: < Widget > [
@@ -166,7 +167,7 @@ class UserHeaderItem extends StatelessWidget {
166167 );
167168 }
168169
169- _renderBlog (context) {
170+ _renderBlog (BuildContext context) {
170171 return Container (
171172
172173 ///用户博客
@@ -405,7 +406,7 @@ class UserHeaderChart extends StatelessWidget {
405406
406407 const UserHeaderChart (this .userInfo, {super .key});
407408
408- _renderChart (context) {
409+ _renderChart (BuildContext context) {
409410 double height = 140.0 ;
410411 double width = 3 * MediaQuery .sizeOf (context).width / 2 ;
411412 if (userInfo.login != null && userInfo.type == "Organization" ) {
0 commit comments