Skip to content

Commit

Permalink
update image timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Kwarteng committed Jan 11, 2025
1 parent 3642188 commit 6f9768a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
41 changes: 22 additions & 19 deletions example/mini_app/lib/code_editor/mini_code_editor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -593,28 +593,31 @@ class MyApp extends StatelessWidget {
const SizedBox(height: 16),
Expanded(
child: MinimapScrollbarWidget(
child: Container(
decoration: BoxDecoration(
color: const Color(0xFF272822),
borderRadius: BorderRadius.circular(4),
),
child: _codeController != null
? CodeField(
controller: _codeController!,
textStyle: const TextStyle(
fontFamily: 'monospace',
fontSize: 14,
),
lineNumberStyle: LineNumberStyle(
textStyle: TextStyle(
color: Colors.grey[600],
imageUpdateInterval: 10500,
child: SingleChildScrollView(
child: Container(
decoration: BoxDecoration(
color: const Color(0xFF272822),
borderRadius: BorderRadius.circular(4),
),
child: _codeController != null
? CodeField(
controller: _codeController!,
textStyle: const TextStyle(
fontFamily: 'monospace',
fontSize: 14,
),
lineNumberStyle: LineNumberStyle(
textStyle: TextStyle(
color: Colors.grey[600],
fontSize: 14,
),
),
)
: const Center(
child: CircularProgressIndicator(),
),
)
: const Center(
child: CircularProgressIndicator(),
),
),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion example/mini_app/lib/masonry_grid/masonry_grid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class MiniMasonryGrid extends StatelessWidget {
body: MinimapScrollbarWidget(
position: MinimapPosition.bottom,
/// The minimap will not be updated every time the scroll position changes.
imageUpdateInterval: 0,
imageUpdateInterval: 1000000000000,
miniSize: 80,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0),
Expand Down

0 comments on commit 6f9768a

Please sign in to comment.