@override
Widget build(BuildContext context) {
return SizedBox(
width: double.infinity,
height: getProportionateScreenHeight(56),
child: TextButton(
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
color: kPrimaryColor,
onPressed: press,
child: Text(
text,
style: TextStyle(
fontSize: getProportionateScreenWidth(18),
color: Colors.white,
),
),
),
);
}
Analyzing E-commerce-Complete-Flutter-UI...
info โข 'FlatButton' is deprecated and shouldn't be used. Use TextButton
instead. See the migration guide in
flutter.dev/go/material-button-migration-guide). This feature
was deprecated after v1.25.0-8.1.pre. โข
lib/components/default_button.dart:20:14 โข deprecated_member_use
info โข 'FlatButton' is deprecated and shouldn't be used. Use TextButton
instead. See the migration guide in
flutter.dev/go/material-button-migration-guide). This feature
was deprecated after v1.25.0-8.1.pre. โข
lib/components/rounded_icon_btn.dart:33:14 โข
deprecated_member_use
info โข Unused import:
'package:shop_app/screens/profile/profile_screen.dart' โข
lib/main.dart:3:8 โข unused_import
info โข Duplicate import โข lib/models/Cart.dart:4:8 โข duplicate_import
info โข 'FlatButton' is deprecated and shouldn't be used. Use TextButton
instead. See the migration guide in
flutter.dev/go/material-button-migration-guide). This feature
was deprecated after v1.25.0-8.1.pre. โข
lib/screens/details/components/custom_app_bar.dart:26:22 โข
deprecated_member_use
info โข 'overflow' is deprecated and shouldn't be used. Use clipBehavior
instead. See the migration guide in
flutter.dev/go/clip-behavior. This feature was deprecated after
v1.22.0-12.0.pre. โข
lib/screens/home/components/icon_btn_with_counter.dart:25:9 โข
deprecated_member_use
info โข 'Overflow' is deprecated and shouldn't be used. Use clipBehavior
instead. See the migration guide in
flutter.dev/go/clip-behavior. This feature was deprecated after
v1.22.0-12.0.pre. โข
lib/screens/home/components/icon_btn_with_counter.dart:25:19 โข
deprecated_member_use
info โข 'FlatButton' is deprecated and shouldn't be used. Use TextButton
instead. See the migration guide in
flutter.dev/go/material-button-migration-guide). This feature
was deprecated after v1.25.0-8.1.pre. โข
lib/screens/profile/components/profile_menu.dart:21:14 โข
deprecated_member_use
info โข 'overflow' is deprecated and shouldn't be used. Use clipBehavior
instead. See the migration guide in
flutter.dev/go/clip-behavior. This feature was deprecated after
v1.22.0-12.0.pre. โข
lib/screens/profile/components/profile_pic.dart:16:9 โข
deprecated_member_use
info โข 'Overflow' is deprecated and shouldn't be used. Use clipBehavior
instead. See the migration guide in
flutter.dev/go/clip-behavior. This feature was deprecated after
v1.22.0-12.0.pre. โข
lib/screens/profile/components/profile_pic.dart:16:19 โข
deprecated_member_use
info โข 'FlatButton' is deprecated and shouldn't be used. Use TextButton
instead. See the migration guide in
flutter.dev/go/material-button-migration-guide). This feature
was deprecated after v1.25.0-8.1.pre. โข
lib/screens/profile/components/profile_pic.dart:27:22 โข
deprecated_member_use
info โข Name non-constant identifiers using lowerCamelCase โข
lib/screens/sign_up/components/sign_up_form.dart:20:10 โข
non_constant_identifier_names
12 issues found. (ran in 2.5s)