0

请善待并告诉我在哪里添加代码行以及遵循什么逻辑?


void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final alreadySaved = _savedQuotes.contains(context);
    return MaterialApp(
        theme: ThemeData(primaryColor: Colors.blue[600]),
        home: Scaffold(
            appBar: AppBar(title: Text('Quotes')),
            body: ListView(
              
              padding: const EdgeInsets.all(8),
              children: <Widget>[
                
                ),
                Container(
                  height: 50,
                  color: Colors.blue[200],
                  child: const Center(
                      child: Text(
                          'You only live once, but if you do it right, once is enough.')),
             
                )
              ],
            )));
  }
}

我在 Dart 方面很差,刚开始 这里是应用程序的 Scrrenshot

我想在左侧为每个将打开和关闭收藏夹的引号添加类似图标

4

0 回答 0