GithubHelp home page GithubHelp logo

Dart lang support about procolors HOT 5 CLOSED

pouyakary avatar pouyakary commented on May 21, 2024 1
Dart lang support

from procolors.

Comments (5)

pouyakary avatar pouyakary commented on May 21, 2024 1

@theiskaa So I worked on the Dart support for the past two days and, while on my side I wanted a better Dart experience, the grammar itself was not good enough. So I worked on the grammar (and actually a lot), here is the result of it:

Dart-Code/Dart-Code#4067

You can have a preview of it, I'll ship the next Pro Colors version as soon as the upstream branch accepts the patch and release. Till then, you can give it an upvote :)

from procolors.

pouyakary avatar pouyakary commented on May 21, 2024

Hey how are you? Can you do me a favor? Give me a huge chunk of code that contains everything dart has. Then I can find a good color and apply to it

from procolors.

theiskaa avatar theiskaa commented on May 21, 2024

I'm quite good man thanks. Okay sure thing, I'll do soon as I can as possible

from procolors.

theiskaa avatar theiskaa commented on May 21, 2024

Very basic dart/flutter code:
Also you can try it online by following: https://dartpad.dev/flutter?null_safety=true

import 'package:flutter/material.dart';

// Basic flutter app
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue),
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: MyWidget(),
        ),
      ),
    );
  }
}

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Text('Hello, World!', style: Theme.of(context).textTheme.headline4);
  }
}

from procolors.

pouyakary avatar pouyakary commented on May 21, 2024

@theiskaa thanks but it's not enough.
The idea of good token coverage is to have every possible token that the language has.
Are you sure that these are every possible thing?

To me this comes to mind, but I'm not sure if it fully covers the language.

from procolors.

Related Issues (20)

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.