Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/flutter/samples into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
domesticmouse committed Jul 24, 2023
2 parents ae934a0 + 1d66a0e commit 2db8d34
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
35 changes: 17 additions & 18 deletions background_isolate_channels/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class MyApp extends StatelessWidget {
title: 'Background Isolate Channels',
theme: ThemeData(
primarySwatch: Colors.blue,
useMaterial3: true,
),
home: const MyHomePage(title: 'Background Isolate Channels'),
);
Expand Down Expand Up @@ -124,26 +125,24 @@ class _MyHomePageState extends State<MyHomePage> {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Column(
children: [
TextField(
onChanged:
_database == null ? null : (query) => _refresh(query: query),
decoration: const InputDecoration(
labelText: 'Search',
suffixIcon: Icon(Icons.search),
),
),
Expanded(
child: ListView.builder(
itemBuilder: (context, index) {
return ListTile(title: Text(_entries![index]));
},
itemCount: _entries?.length ?? 0,
bottom: PreferredSize(
preferredSize: const Size.fromHeight(kToolbarHeight),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
child: SearchBar(
hintText: 'Search',
onChanged:
_database == null ? null : (query) => _refresh(query: query),
trailing: const [Icon(Icons.search), SizedBox(width: 8)],
),
),
],
),
),
body: ListView.builder(
itemBuilder: (context, index) {
return ListTile(title: Text(_entries![index]));
},
itemCount: _entries?.length ?? 0,
),
floatingActionButton: FloatingActionButton(
onPressed: _database == null ? null : _addDate,
Expand Down
1 change: 1 addition & 0 deletions simplistic_calculator/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ class CalculatorApp extends ConsumerWidget {

return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData.light(useMaterial3: true),
home: Scaffold(
body: Container(
color: Colors.white,
Expand Down

0 comments on commit 2db8d34

Please sign in to comment.