google – type ‘Color’ is not a subtype of type ‘MaterialColor’ error in Flutter?

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building Builder:
type ‘Color’ is not a subtype of type ‘MaterialColor’

The relevant error-causing widget was:
MaterialApp file:///D:/FlutterExercise/FlutterExercise/07/spanishaudioplayer/lib/main.dart:9:12

When the exception was thrown, this was the stack:
#0 new _HomePageState (package:spanishaudioplayer/HomePage.dart:22:35)
#1 HomePage.createState (package:spanishaudioplayer/HomePage.dart:7:35)
#2 new StatefulElement (package:flutter/src/widgets/framework.dart:4584:24)
#3 StatefulWidget.createElement (package:flutter/src/widgets/framework.dart:916:38)
… Normal element mounting (166 frames)
#169 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3541:14)
#170 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6094:32)
… Normal element mounting (300 frames)
#470 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3541:14)
#471 Element.updateChild (package:flutter/src/widgets/framework.dart:3306:18)
#472 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1182:16)
#473 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1153:5)
#474 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:1095:18)
#475 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2647:19)
#476 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1094:13)
#477 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:934:7)
#478 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:915:7)
(elided 11 frames from class _RawReceivePortImpl, class _Timer, dart:async, and dart:async-patch)

W/InputMethodManager(14486): startInputReason = 8
W/IInputConnectionWrapper(14486): getExtractedText on inactive InputConnection
W/IInputConnectionWrapper(14486): getTextBeforeCursor on inactive InputConnection
V/ActivityThread(14486): Finishing stop of ActivityRecord{801579c token=android.os.BinderProxy@63e470c {com.example.spanishaudioplayer/com.example.spanishaudioplayer.MainActivity}}
W/libEGL (14486): EGLNativeWindowType 0x76efee7010 disconnect failed
W/libEGL (14486): EGLNativeWindowType 0x7713667010 disconnect failed
V/ActivityThread(14486): Handle window ActivityRecord{801579c token=android.os.BinderProxy@63e470c {com.example.spanishaudioplayer/com.example.spanishaudioplayer.MainActivity}} visibility: false


import 'package:flutter/material.dart';
import 'HomePage.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Spanish Audio Numbers',
      theme: ThemeData(
        primarySwatch: Colors.teal,
      home: HomePage(),


import 'package:flutter/material.dart';
import 'package:audioplayers/audio_cache.dart';
import 'NumberAudio.dart';

class HomePage extends StatefulWidget {
  _HomePageState createState() => _HomePageState();

class _HomePageState extends State<HomePage> {
  AudioCache audioPlayer = AudioCache();
  List<NumberAudio> audioList = (
    NumberAudio("one.wav",, "one"),
    NumberAudio("two.wav",, "two"),
    NumberAudio("three.wav",, "three"),
    NumberAudio("four.wav",, "four"),
    NumberAudio("five.wav", Colors.purple, "five"),
    NumberAudio("six.wav", Colors.cyan, "six"),
    NumberAudio("seven.wav",, "seven"),
    NumberAudio("eight.wav", Colors.grey, "eight"),
    NumberAudio("nine.wav", Colors.yellow, "nine"),
    NumberAudio("ten.wav",, "ten"),
  play(String audioFile) async {;

  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(
          'Spanish Numbers',
          style: TextStyle(
            color: Colors.white,
            fontSize: 24.0,
            fontWeight: FontWeight.bold,
        //backgroundColor: Colors.teal,
      body: Center(
        child: Column(
          children: (
              image: AssetImage("images/logo.png"),
              child: GridView.builder(
                padding: EdgeInsets.all(10.0),
                gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                  childAspectRatio: 1.0,
                  crossAxisCount: 2,
                  crossAxisSpacing: 5.0,
                  mainAxisSpacing: 5.0,
                itemCount: audioList.length,
                itemBuilder: (context, index) => SizedBox(
                  height: 50.0,
                  width: 100.0,
                  child: RaisedButton(
                    child: Text(
                      style: TextStyle(
                        color: Colors.white,
                        fontSize: 24.0,
                        fontWeight: FontWeight.bold,
                    color: audioList(index).buttonColor,
                    onPressed: () {


import 'package:flutter/material.dart';

class NumberAudio {
  String audioFile;
  MaterialColor buttonColor;
  String buttonTitle;
  NumberAudio(String audioFile, MaterialColor buttonColor, String buttonTitle) {
    this.audioFile = audioFile;
    this.buttonColor = buttonColor;
    this.buttonTitle = buttonTitle;


audio files are in the assets folder and the logo is in images folder.

bitcoin core – the two miner type of reward

the definition of a block in the blockchain is
“A block records some or all of the most recent Bitcoin transactions that have not yet entered any prior blocks. Thus, a block is like a page of a ledger or record book. Each time a block is ‘completed’, it gives way to the next block in the blockchain.”
this is acceptable miners get a reward for proof of work(confirm transactions)
but what exactly do miners when say they have a process for creating a block(and get a reward for them)?
(In other words what exactly this process? Is it possible to remove it?)

How to achieve a custom post type permalink like this!

How to achieve a custom post type permalink like this!




data structures – Reverse An Array whats wrong with this type of code?

data structures – Reverse An Array whats wrong with this type of code? – Computer Science Stack Exchange

wp cron – Autoupdate custom type post taxonomy after date set via metafield

I am launching a site with course listings.

Using mostly Crocoblock JetEngine, I created a custom post type with a closing_date metafield to enter when the course applications closes. I also created a custom taxonomy “course-status” to choose between open/closed tag.

When a new post (course) is created, the closing date for application is entered in the metafield and the post is set to “Open”.

Any way to automatically change the taxonomy to “closed” after the date entered in the metafield?

Any help is appreciated.

Does the miner machine get any other type of reward except confirmation of transaction in bitcoin?

Does the miner machine get any other type of reward except confirmation of transaction in bitcoin?(The answer precedes ​another question)

entities – Add new default value to existing content type

I’m currently on the latest version of Drupal 8. I have a content type called News and Articles. In this content type I have a field called Category which is a taxonomy term -> Entity reference field. When I first created this content type I added all my categories as default values.

Now 2 years later I want to add another default value to this content type. All the answers I’ve seen so far deal with making the change through the database. I wanted to see if there was a different option? Reason is because I have about 400 pages using this content type, really don’t want to make a new one.

Here a screenshot to the list I want to add to:

android – Error en Flutter -> The argument type ‘Context’ can’t be assigned to the parameter type ‘BuildContext’

No entiendo por qué el Widget showModalBottomSheet me da ese error siendo que está tal cual en la documentación de Flutter.

La salida de error completa es:

Error: The argument type 'Context' can't be assigned to the parameter type 'BuildContext'.
 - 'Context' is from 'package:path/src/context.dart' ('../../../../Developer/flutter/.pub-cache/hosted/').
 - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../../Developer/flutter/packages/flutter/lib/src/widgets/framework.dart').
              context: context,

Este es mi código:

Widget imageProfile() {
  return Center(
    child: Stack(children: <Widget>(
        radius: 80.0,
        backgroundImage: AssetImage("assets/huevo.png")
        bottom: 20.0,
        right: 20.0,
        child: InkWell(
          onTap: () {
              context: context,
              builder: ((builder) => bottomSheet()),

How to disable autoformatting in microsoft chat on sender’s side? I type an underscore, teams turns it to italic

In Microsoft Teams chat, if I type a second underscore character in a chat line, Teams tries to turn the part of the line between the two underscore characters to italic and removes the underscores. I find this very annoying, because I do often want to type underscore characters. In the rare case when I do want to type italic, I can press control-I to do just that. Is there some way to disable this behavior?

The only workaround that I know is to copy-paste the text from elsewhere, but that’s not a particularly nice way to use a real-time chat program.

theme development – Custom post type 404 category page

I created a custom post type called news and a taxonomy for the custom post type called news categories. However, the category page archive returns me 404.

**Register Custom Post Type**

    $labels_noticias = array(
        'name'               => __( 'Notícias' ),
        'singular_name'      => __( 'Notícia' ),
        'add_new'            => __( 'Nova Notícia' ),
        'add_new_item'       => __( 'Nova Notícia' ),
        'edit_item'          => __( 'Editar Notícia' ),
        'new_item'           => __( 'Nova Notícia' ),
        'all_items'          => __( 'Todas as Notícias' ),
        'view_item'          => __( 'Visualizar Notícia' ),
        'search_items'       => __( 'Pesquisar Notícias' ),
        'not_found'          => __( 'Nenhuma notícia encontrada ' ),
        'not_found_in_trash' => __( 'Nenhuma notícia encontrada na lixeira ' ),
    // Argumentos CPT Notícias
    $args_noticias = array(
        'labels'            => $labels_noticias,
        'description'       => 'Contém nossas notícias',
        'taxonomies'        => array('categoria-noticias','noticias-tag'),
        'public'            => true,
        'menu_position'     => 5,
        'menu_icon'         => 'data:image/svg+xml;base64,' . base64_encode($icons_cpt('noticias')),
        'supports'          => $supports,
        'has_archive'       => 'noticias',
        'show_in_admin_bar' => true,
        'show_in_nav_menus' => true,
        'show_in_rest'      => true,
        'query_var'         => 'noticia',
    register_post_type ( 'noticias', $args_noticias );
** Register Custom Taxonomie **

    $labels_categories = array(
        'name'              => _x( 'Categorias', 'taxonomy general name' ),
        'singular_name'     => _x( 'Categoria', 'taxonomy singular name' ),
        'search_items'      => __( 'Buscar Categorias' ),
        'all_items'         => __( 'Todas Categorias' ),
        'parent_item'       => __( 'Categoria Pai' ),
        'parent_item_colon' => __( 'Categoria Pai:' ),
        'edit_item'         => __( 'Editar Categoria' ),
        'update_item'       => __( 'Atualizar Categoria' ),
        'add_new_item'      => __( 'Adicionar nova Categoria' ),
        'new_item_name'     => __( 'Novo nome de categoria' ),
        'menu_name'         => __( 'Categorias' ),
    $args_categories   = array(
        'hierarchical'      => true, // make it hierarchical (like categories)
        'labels'            => $labels_categories,
        'show_ui'           => true,
        'show_admin_column' => true,
        'query_var'         => true,
        'rewrite'           => ( 'slug' => 'noticias' ),

register_taxonomy( "categoria-noticias", $args_categories );

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive New Proxy Lists Every Day Proxies123