Skip to content

Commit

Permalink
Merge pull request syncfusion#330 from Yuvaraj-Gajaraj/master
Browse files Browse the repository at this point in the history
Updated new samples.
  • Loading branch information
JayavigneshwaranG authored Apr 8, 2021
2 parents b7c9f10 + 22d380f commit 07d91d5
Show file tree
Hide file tree
Showing 10 changed files with 308 additions and 201 deletions.
Binary file added images/code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions ios/Flutter/flutter_export_environment.sh

This file was deleted.

33 changes: 0 additions & 33 deletions ios/Runner/GeneratedPluginRegistrant.m

This file was deleted.

16 changes: 8 additions & 8 deletions lib/model/helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ class _FullViewSampleLayout extends StatelessWidget {
sample!.codeLink != '')
? Padding(
padding: const EdgeInsets.fromLTRB(
0, 0, 8, 0),
0, 0, 10, 0),
child: Container(
height: 37,
width: 37,
height: 40,
width: 40,
child: IconButton(
icon: Image.asset(
'images/git_hub_mobile.png',
'images/code.png',
color: Colors.white),
onPressed: () {
launch(sample!.codeLink!);
Expand Down Expand Up @@ -132,13 +132,13 @@ class _FullViewSampleLayout extends StatelessWidget {
? (<Widget>[
Padding(
padding: const EdgeInsets.fromLTRB(
0, 0, 8, 0),
0, 0, 10, 0),
child: Container(
height: 37,
width: 37,
height: 40,
width: 40,
child: IconButton(
icon: Image.asset(
'images/git_hub_mobile.png',
'images/code.png',
color: Colors.white),
onPressed: () {
launch(sample!.codeLink!);
Expand Down
9 changes: 4 additions & 5 deletions lib/model/mobile_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,12 @@ class _LayoutPageState extends State<LayoutPage> {
visible: _showIcon && currentSample != null,
child: Padding(
padding:
const EdgeInsets.fromLTRB(0, 0, 8, 0),
const EdgeInsets.fromLTRB(0, 0, 10, 0),
child: Container(
height: 37,
width: 37,
height: 40,
width: 40,
child: IconButton(
icon: Image.asset(
'images/git_hub_mobile.png',
icon: Image.asset('images/code.png',
color: Colors.white),
onPressed: () {
launch(currentSample!.codeLink!);
Expand Down
6 changes: 3 additions & 3 deletions lib/model/model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class SampleModel extends Listenable {
Color webBackgroundColor = const Color.fromRGBO(246, 246, 246, 1);

/// Holds theme based color of icon
Color webIconColor = const Color.fromRGBO(0, 0, 0, 0.54);
Color webIconColor = const Color.fromRGBO(55, 55, 55, 1);

/// Holds theme based input container color
Color webInputColor = const Color.fromRGBO(242, 242, 242, 1);
Expand Down Expand Up @@ -436,7 +436,7 @@ class SampleModel extends Listenable {
{
dividerColor = const Color.fromRGBO(61, 61, 61, 1);
cardColor = const Color.fromRGBO(48, 48, 48, 1);
webIconColor = const Color.fromRGBO(255, 255, 255, 0.65);
webIconColor = const Color.fromRGBO(230, 230, 230, 1);
webOutputContainerColor = const Color.fromRGBO(23, 23, 23, 1);
webInputColor = const Color.fromRGBO(44, 44, 44, 1);
webBackgroundColor = const Color.fromRGBO(33, 33, 33, 1);
Expand All @@ -450,7 +450,7 @@ class SampleModel extends Listenable {
{
dividerColor = const Color.fromRGBO(204, 204, 204, 1);
cardColor = Colors.white;
webIconColor = const Color.fromRGBO(0, 0, 0, 0.54);
webIconColor = const Color.fromRGBO(55, 55, 55, 1);
webOutputContainerColor = Colors.white;
webInputColor = const Color.fromRGBO(242, 242, 242, 1);
webBackgroundColor = const Color.fromRGBO(246, 246, 246, 1);
Expand Down
81 changes: 37 additions & 44 deletions lib/model/web_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1033,8 +1033,7 @@ class SampleOutputContainerState extends State<_SampleOutputContainer> {
mainAxisAlignment:
MainAxisAlignment.end,
children: <Widget>[
Flexible(
child: SizedBox(
Container(
height: 21,
width: 21,
child: InkWell(
Expand All @@ -1048,50 +1047,44 @@ class SampleOutputContainerState extends State<_SampleOutputContainer> {
? 'images/git_hub_dark.png'
: 'images/git_hub.png',
fit: BoxFit.contain)),
)),
Padding(
padding: EdgeInsets.only(
left: width < 500
? 5
: 10)),
Flexible(
child: InkWell(
onTap: () {
performMaximize(
_model, _sample);
},
child: Transform.scale(
scale: 0.85,
child: Icon(
Icons.open_in_full,
color: _model
.webIconColor),
),
),
),
Padding(
padding: EdgeInsets.only(
left: width < 500
? 5
: 10)),
Flexible(
child:
_sample.needsPropertyPanel ==
true
? InkWell(
onTap: () {
outputScaffoldKey
.currentState!
.openEndDrawer();
},
child: Icon(
Icons.menu,
color: _model
.webIconColor),
)
: SizedBox.fromSize(
size: Size.zero),
const Padding(
padding:
EdgeInsets.only(left: 12),
),
InkWell(
onTap: () {
performMaximize(
_model, _sample);
},
child: Container(
child: Transform.scale(
scale: 0.85,
child: Icon(
Icons.open_in_full,
color: _model
.webIconColor))),
),
const Padding(
padding:
EdgeInsets.only(left: 12),
),
_sample.needsPropertyPanel == true
? Container(
height: 24,
width: 24,
child: InkWell(
onTap: () {
outputScaffoldKey
.currentState!
.openEndDrawer();
},
child: Icon(Icons.menu,
color: _model
.webIconColor),
),
)
: Container(),
]),
),
Expanded(
Expand Down
Loading

0 comments on commit 07d91d5

Please sign in to comment.