febryardiansyah / manga_mint Goto Github PK
View Code? Open in Web Editor NEWAn Online Manga Reader Application Bahasa Indonesia
License: MIT License
An Online Manga Reader Application Bahasa Indonesia
License: MIT License
Hi, I'm just learning flutter and unable to resolve an error. can someone please help me in resolving this issue. Error coming at "SignInButton (" 4 positional argument(s) expected, but 0 found. (Documentation) Try adding the missing arguments. Please find my code below.
import 'package:flutter/material.dart';
import 'package:signin1/app/sign_in/sign_in_button.dart';
import 'package:signin1/common_widgets/custom_raised_button.dart';
class SignInPage extends StatelessWidget {
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
centerTitle: true,
title: Text('Time Tracker'),
elevation: 2.0,
),
body: _buildContent(),
backgroundColor: Colors.grey[200],
);
}
Widget _buildContent() {
return Padding(
padding: EdgeInsets.all(16.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Text(
'Sign in',
textAlign: TextAlign.center,
style: TextStyle(fontSize: 32.0, fontWeight: FontWeight.w600),
),
SizedBox(height: 8.0),
SignInButton (
text: 'sign in',
textColor: Colors.black87,
color: Colors.white,
onPressed: (){},
),
],
));
}
}
import 'package:flutter/material.dart';
class CustomRaisedButton extends StatelessWidget {
CustomRaisedButton({
required this.child,
required this.color,
this.borderRadius = 2.0,
required this.onPressed,
});
final Widget child;
final Color color;
final double borderRadius;
final VoidCallback onPressed;
@OverRide
Widget build(BuildContext context) {
return SizedBox(
child: ElevatedButton(
child: child,
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(color),
shape: MaterialStateProperty.all(
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(borderRadius),
))),
onPressed: onPressed,
),
);
}
}
import 'package:flutter/material.dart';
import 'package:signin1/common_widgets/custom_raised_button.dart';
class SignInButton extends CustomRaisedButton {
SignInButton(
String text,
Color color,
Color textColor,
VoidCallback onPressed,
) : super(
child: Text(
text,
style: TextStyle(color: textColor, fontSize: 15.0),
),
color: color,
borderRadius: 8.0,
onPressed: onPressed,
);
}
I used 'flutter pub get, upgrade and out dated' commands but i get this error.
`error - 1 positional argument(s) expected, but 0 found - lib\components\item_big.dart:41:20 - not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\components\item_small.dart:16:20 - not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\components\splash_screen.dart:26:20 - not_enough_positional_arguments
info - Unused import: 'package:mangamint/service/api_service.dart' - lib\repositories\manhua_manhwa_repo.dart:6:8 - unused_import
error - 1 positional argument(s) expected, but 0 found - lib\screens\chapter_screen\chapter_screen.dart:66:20 - not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\screens\detail_screen\manga_detail_screen.dart:89:20 -
error - 1 positional argument(s) expected, but 0 found - lib\screens\home_screens\home_screen.dart:35:20 - not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\screens\home_screens\my_carousel.dart:21:20 - not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\screens\lainnya_screen\lainnya_screen.dart:59:20 - not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\screens\list_manga_screen\manhua_category.dart:37:20 -
not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\screens\list_manga_screen\manhwa_category.dart:39:20 -
not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\screens\list_manga_screen\semuanya_category.dart:37:20 -
not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\screens\result_screen\manga_by_genre_screen.dart:47:20 -
not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\screens\result_screen\result_screen.dart:28:20 - not_enough_positional_arguments
error - 1 positional argument(s) expected, but 0 found - lib\screens\result_screen\terpopuler_screen.dart:31:20 -
not_enough_positional_arguments`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.