Giter Site home page Giter Site logo

febryardiansyah / manga_mint Goto Github PK

View Code? Open in Web Editor NEW
62.0 5.0 37.0 7.9 MB

An Online Manga Reader Application Bahasa Indonesia

License: MIT License

Kotlin 0.08% Ruby 1.94% Swift 0.24% Objective-C 0.02% Dart 97.05% HTML 0.67%
manga-reader manga-scraper manga-android manga-tracker

manga_mint's Issues

4 positional argument(s) expected, but 0 found.

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,
);
}

1 positional argument(s) expected, but 0 found

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`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.