Migrating to GWT Material 2.0

So we just moved to GWT Material 2.0 in my office for some of our products but the migration was not as seamless. But anyways, here are some of the key things that need to be observed while making your own migrations.

  1. In the XML files for the code, you need to use capital letters for your color rather than small letters. So black becomes BLACK and blue-lighten-1 becomes BLUE_LIGHTEN_1 etc.
  2. Using strings for color is no longer allowed in the java code. You need to import the New Color from GWT Materialize
  3. While using modal, you need to check dismissable as the method is not dismissible. Be careful of the spellings.

Here are a few of the things I do remember and I hope would be of help to someone out there

Leave a Reply

Your email address will not be published. Required fields are marked *