In Chapter 6.4, where we say
// 1
Flexible(
// 2
child: AspectRatio(
aspectRatio: 1 / 1,
child: Image.asset('assets/fooderlich_assets/empty_list.png'),
),
),
would best practice be to have a separate constants.dart file that has an entry something like
const String empty_list_graphic = 'assets/fooderlich_assets/empty_list.png'
and then replace the child with
child: Image.asset(empty_list_graphic),
or something like the above? That way, we could move either the file or directory or rename it or change it from a png to jpg or find where it’s used?