Skip to content

Commit

Permalink
Merge pull request syncfusion#55 from dharanidharandharmasivam/master
Browse files Browse the repository at this point in the history
Sample modifications
  • Loading branch information
JayavigneshwaranG authored Nov 6, 2019
2 parents 41cc8bd + 852a476 commit fb5467a
Show file tree
Hide file tree
Showing 137 changed files with 163 additions and 163 deletions.
12 changes: 6 additions & 6 deletions lib/model/helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ List<Widget> getTabs(SampleListModel model) {
alignment: Alignment.center,
child: Text(
str,
style: TextStyle(fontSize: 12),
style: const TextStyle(fontSize: 12),
),
),
],
Expand Down Expand Up @@ -1141,7 +1141,7 @@ List<Widget> getCardViewChildren(SampleListModel model) {
model.controlList[model.selectedIndex].subItemList[i][position].status != null
? model.controlList[model.selectedIndex].subItemList[i][position].status
: '',
style: TextStyle(color: Colors.white))),
style: const TextStyle(color: Colors.white))),
const Padding(
padding:
EdgeInsets.only(left: 15),
Expand Down Expand Up @@ -1215,15 +1215,15 @@ List<Widget> getSecondaryTabBar(SampleListModel model) {
child: AppBar(
backgroundColor: model.backgroundColor,
bottom: TabBar(
indicator: UnderlineTabIndicator(
indicator: const UnderlineTabIndicator(
borderSide: BorderSide(
width: 3.0, color: const Color.fromRGBO(252, 220, 0, 1)),
width: 3.0, color: Color.fromRGBO(252, 220, 0, 1)),
),
isScrollable: true,
tabs: getSecondaryTabs(model, i),
),
),
preferredSize: Size.fromHeight(48.0),
preferredSize: const Size.fromHeight(48.0),
),
body: TabBarView(children: getTabViewChildren(model, i)))),
));
Expand Down Expand Up @@ -1260,7 +1260,7 @@ List<Widget> getSecondaryTabs(SampleListModel model, int i) {
alignment: Alignment.center,
child: Text(
str,
style: TextStyle(fontSize: 12),
style: const TextStyle(fontSize: 12),
),
),
],
Expand Down
16 changes: 8 additions & 8 deletions lib/sample_browser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class _HomePageState extends State<HomePage> {
resizeToAvoidBottomPadding: true,
drawer: getSideDrawer(model),
appBar: PreferredSize(
preferredSize: Size.fromHeight(60.0),
preferredSize: const Size.fromHeight(60.0),
child: Container(
decoration: BoxDecoration(boxShadow: <BoxShadow>[
BoxShadow(
Expand All @@ -114,7 +114,7 @@ class _HomePageState extends State<HomePage> {
title: AnimateOpacityWidget(
controller: controller,
opacity: cOpacity,
child: Text('Flutter UI Widgets',
child: const Text('Flutter UI Widgets',
style: TextStyle(
fontSize: 18,
fontFamily: 'MontserratMedium'))),
Expand Down Expand Up @@ -250,8 +250,8 @@ class _HomePageState extends State<HomePage> {
fontWeight:
FontWeight
.bold))),
Padding(
padding: const EdgeInsets
const Padding(
padding: EdgeInsets
.fromLTRB(
0, 12, 0, 0),
child: Text(
Expand Down Expand Up @@ -695,7 +695,7 @@ class _HomePageState extends State<HomePage> {
child: RaisedButton(
color: model.backgroundColor,
onPressed: () => _applySetting(model),
child: Text('APPLY',
child: const Text('APPLY',
style: TextStyle(
fontFamily:
'MontserratMedium',
Expand Down Expand Up @@ -1040,7 +1040,7 @@ class _HomePageState extends State<HomePage> {
'Roboto-Regular',
fontWeight: FontWeight
.normal))),
Spacer(),
const Spacer(),
Container(
padding:
const EdgeInsets.fromLTRB(
Expand Down Expand Up @@ -1100,7 +1100,7 @@ class _HomePageState extends State<HomePage> {
fontWeight:
FontWeight.normal)),
),
Spacer(),
const Spacer(),
Container(
padding:
const EdgeInsets.fromLTRB(
Expand Down Expand Up @@ -1160,7 +1160,7 @@ class _HomePageState extends State<HomePage> {
fontWeight:
FontWeight.normal)),
),
Spacer(),
const Spacer(),
Container(
padding:
const EdgeInsets.fromLTRB(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _AxisCrossingState extends State<AxisCrossing> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _EdgeLabelState extends State<EdgeLabel> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class _LabelActionState extends State<LabelAction> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _MultipleAxisState extends State<MultipleAxis> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class _NumericOpposedState extends State<NumericOpposed> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _PlotBandRecurrenceState extends State<PlotBandRecurrence> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
2 changes: 1 addition & 1 deletion lib/samples/chart/axis_features/plot_band/plot_band.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class _PlotBandDefaultState extends State<PlotBandDefault> {

],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class _CategoryDefaultState extends State<CategoryDefault> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class _CategoryIndexedState extends State<CategoryIndexed> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class _CategoryTicksState extends State<CategoryTicks> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class _DateTimeLabelState extends State<DateTimeLabel> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class _DateTimeDefaultState extends State<DateTimeDefault> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _LogarithmicAxisDefaultState extends State<LogarithmicAxisDefault> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class _LogarithmicAxisInversedState extends State<LogarithmicAxisInversed> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class _NumericDefaultState extends State<NumericDefault> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class _NumericInverseState extends State<NumericInverse> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class _NumericLabelState extends State<NumericLabel> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class _AreaEmptyState extends State<AreaEmpty> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class _AreaGradientState extends State<AreaGradient> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class _AreaDefaultState extends State<AreaDefault> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ _AreaVerticalState(this.sample);
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class _BarSpacingState extends State<BarSpacing> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _BarRoundedState extends State<BarRounded> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class _BarTrackerState extends State<BarTracker> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class _BarCustomizationState extends State<BarCustomization> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _BarDefaultState extends State<BarDefault> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class _BubbleGradientState extends State<BubbleGradient> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _BubbleMultiSeriesState extends State<BubbleMultiSeries> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class _BubblePointColorState extends State<BubblePointColor> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class _BubbleDefaultState extends State<BubbleDefault> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class _ColumnBackState extends State<ColumnBack> {
),
],
appBarTitle: AnimatedSwitcher(
duration: Duration(milliseconds: 1000),
duration: const Duration(milliseconds: 1000),
child: Text(sample.title.toString())),
backLayer: BackPanel(sample),
frontLayer: FrontPanel(sample),
Expand Down
Loading

0 comments on commit fb5467a

Please sign in to comment.