Skip to content

Instantly share code, notes, and snippets.

@jaripekkala
Last active October 20, 2020 11:47
Show Gist options
  • Save jaripekkala/fdee1e52faec60d868dda1550fb26a37 to your computer and use it in GitHub Desktop.
Save jaripekkala/fdee1e52faec60d868dda1550fb26a37 to your computer and use it in GitHub Desktop.
soft hyphens
import 'package:flutter/material.dart';
const TODAY = "AUJOUR\u{00AD}D'HUI";
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
color: Colors.lightBlue,
width: 80,
child: Text(TODAY),
),
Container(
color: Colors.blue,
width: 120,
child: Text(TODAY),
),
],
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment