Comments (1)
Hi @pickwick9,
At present we do not have support for night mode in SfPdfViewer. We do not have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. For further details, please refer to the feedback below.
Feedback link: Support for night mode
To display the UI elements in dark mode, you can assign brightness to the ThemeData / ColorScheme in the MaterialApp. Please refer to the code below,
import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_pdfviewer/pdfviewer.dart';
import 'package:syncfusion_flutter_core/theme.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(
seedColor: Colors.deepPurple, brightness: Brightness.dark),
useMaterial3: true,
),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: SfTheme(
data: SfThemeData(
brightness: Brightness.dark,
),
child: SfPdfViewer.network(
"https://www.lysator.liu.se/mit-guide/MITLockGuide.pdf"),
),
);
}
}
from flutter-widgets.
Related Issues (20)
- The same appointment is displayed twice on the same day in month view. HOT 2
- Query: nature of packages HOT 3
- Expose resourcePanelScrollController to the endUser in SFCalendar HOT 1
- [syncfusion_flutter_calendar] Cannot drag horizontal scrollbar in timeline view (Desktop) HOT 2
- Can not disable the trackball marker for specific series in Cartesian charts HOT 2
- [Data Grid] ScrollController not attached error when replacing SfDataGrid with a different Widget HOT 2
- can i build something like below picture with syncfusion AreaChart? HOT 5
- Experiencing RangeError in SfCartesianChart CandleSeries HOT 2
- syncfusion_flutter_datepicker throws an error HOT 2
- Use generally accepted Dart package version numbers
- [syncfusion_flutter_charts] TooltipBehavior preventing vertical scroll HOT 5
- [syncfusion_flutter_pdf] Mini update in docs HOT 2
- Bad format for weeknumber
- [syncfusion_flutter_charts] Color LineSeries depending on Plotbands HOT 2
- [SfCartesianChart] [Flutter] How to jump programmatically to desired position? HOT 2
- [SfCartesianChart] [Flutter] How to get real pointIndex on tapped dataSource on FastLineSeries HOT 1
- Chart data not visible after updating from v23.1.43 to v26.1.35 HOT 3
- grid cell height calculation error for multi line text HOT 1
- Range cannot be wider than RangeController's initial value HOT 2
- generateRRule is error when locale setting to zh-CN HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-widgets.