Chrome Extension

Partric John

@partricjohn

I am a software developer and blogger

  • Remove last character of a string in Javascript
    var str = "Hello World";
    var finalStr = str.substring(0, str.length-1);
  • Simple stateless widget in Flutter
    import 'package:flutter/material.dart'
    
    class WidgetName extends StatelessWidget {
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
            title: 'App title',
            home: Container(
                child: Text('Hello World')
            )
        )
      }
    }