Skip to content

Instantly share code, notes, and snippets.

@albertusdev
Created November 28, 2019 00:22
Show Gist options
  • Save albertusdev/375251f15e1ff364e13048b1796be9ca to your computer and use it in GitHub Desktop.
Save albertusdev/375251f15e1ff364e13048b1796be9ca to your computer and use it in GitHub Desktop.
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Container(
child: Row(
textDirection: TextDirection.rtl,
children: <Widget>[
Container(
color: Colors.red,
width: 100,
height: 50,
),
Container(
width: 2000,
height: 50,
),
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment