Row Base Widget in Flutter


Here is the simple program for printing the complete row base widget properties in Flutter.

Source Code

/*Base Line*/
import 'package:flutter/material.dart';
void main() {
  runApp(MaterialApp(
    home: MyApp(),
  ));
}
class MyApp extends StatefulWidget {
  @override
  _State createState() => _State();
}
class _State extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Row Widget'),
      ),
      body: Container(
        height: 1000,
        child: Row(
          mainAxisAlignment: MainAxisAlignment.start,
          crossAxisAlignment: CrossAxisAlignment.baseline,
          textBaseline: TextBaseline.alphabetic,
          children: <Widget>[
            Text(
              'Tutor Joes',
              style: TextStyle(fontSize: 50),
            ),
            Text(
              'Tutor Joes',
              style: TextStyle(fontSize: 20),
            ),
          ],
        ),
      ),
    );
  }
}
To download raw file Click Here